[gnome-robots] Set WM_CLASS X property to match desktop file



commit eafac9699b1733214c85eed67e15b9a8e3a482ac
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 17 17:39:50 2013 -0500

    Set WM_CLASS X property to match desktop file
    
    This is expected by GNOME Shell

 src/gnobots.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gnobots.c b/src/gnobots.c
index 68918db..31953e6 100644
--- a/src/gnobots.c
+++ b/src/gnobots.c
@@ -183,6 +183,12 @@ main (int argc, char *argv[])
   gettimeofday (&tv, NULL);
   srand (tv.tv_usec);
 
+  /*
+   * Required because the binary doesn't match the desktop file.
+   * Has to be before the call to g_option_context_parse.
+   */
+  g_set_prgname ("gnobots2");
+
   context = g_option_context_new (NULL);
   g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
   g_option_context_add_group (context, gtk_get_option_group (TRUE));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]