[gnome-nibbles] Set WM_CLASS X property



commit 461529190da9c1544c8d4ac1ad25cd6a76df1f08
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 17 17:05:49 2013 -0500

    Set WM_CLASS X property
    
    GNOME Shell expects this to match a desktop file

 src/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 9c7f7b6..d775206 100644
--- a/src/main.c
+++ b/src/main.c
@@ -743,6 +743,12 @@ main (int argc, char **argv)
 
   games_scores_startup ();
 
+  /*
+   * Required because the binary doesn't match the desktop file.
+   * Has to be before the call to g_option_context_parse.
+   */
+  g_set_prgname ("gnibbles");
+
   g_set_application_name (_("Nibbles"));
 
   context = g_option_context_new (NULL);


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