[gnome-klotski] Manually set WM_CLASS X property



commit 0fc812341096802b30375d81baee3b1bbccc27ae
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 17 12:11:05 2013 -0500

    Manually set WM_CLASS X property
    
    GNOME Shell expects WM_CLASS to match a desktop file

 src/gnome-klotski.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index cf7c038..506db56 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -976,6 +976,9 @@ public class Klotski : Gtk.Application
         Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
         Intl.textdomain (GETTEXT_PACKAGE);
 
+        /* Required if the desktop file does not match the binary */
+        Environment.set_prgname ("gnotski");
+
         var context = new OptionContext (null);
         context.set_translation_domain (GETTEXT_PACKAGE);
         context.add_group (Gtk.get_option_group (true));


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