[gnome-klotski] Rename desktop file so we appear in GNOME Software



commit f86db76c9d8dc376185ad23e06512bb5d79005a0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 5 15:37:55 2014 -0600

    Rename desktop file so we appear in GNOME Software

 data/Makefile.am                                   |    2 +-
 data/gnome-klotski.appdata.xml.in                  |    2 +-
 ...gnotski.desktop.in => gnome-klotski.desktop.in} |    0
 po/POTFILES.in                                     |    2 +-
 src/gnome-klotski.vala                             |    3 ---
 5 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 45b1ded..ac594ae 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -10,7 +10,7 @@ pixmap_DATA = \
        gnome-klotski.svg
 
 desktopdir = $(datadir)/applications
-desktop_in_files = gnotski.desktop.in
+desktop_in_files = gnome-klotski.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
diff --git a/data/gnome-klotski.appdata.xml.in b/data/gnome-klotski.appdata.xml.in
index 553a12a..dea08f1 100644
--- a/data/gnome-klotski.appdata.xml.in
+++ b/data/gnome-klotski.appdata.xml.in
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2013 Michael Catanzaro -->
 <application>
- <id type="desktop">gnotski.desktop</id>
+ <id type="desktop">gnome-klotski.desktop</id>
  <licence>CC0</licence>
  <_name>GNOME Klotski</_name>
  <description>
diff --git a/data/gnotski.desktop.in b/data/gnome-klotski.desktop.in
similarity index 100%
rename from data/gnotski.desktop.in
rename to data/gnome-klotski.desktop.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 307db0c..4978906 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,7 +2,7 @@
 # Please keep this file in alphabetical order.
 [encoding: UTF-8]
 data/gnome-klotski.appdata.xml.in
-data/gnotski.desktop.in
+data/gnome-klotski.desktop.in
 data/org.gnome.klotski.gschema.xml
 src/gnome-klotski.vala
 src/puzzle-view.vala
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index d15aecd..613b595 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -988,9 +988,6 @@ 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]