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



commit 07854cd11389acbbe0fa4d22b87cd7b0658188b0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 5 14:54:21 2014 -0600

    Rename desktop file so we appear in GNOME Software

 data/Makefile.am                                   |    2 +-
 .../{glchess.desktop.in => gnome-chess.desktop.in} |    0
 po/POTFILES.in                                     |    2 +-
 src/gnome-chess.vala                               |    3 ---
 4 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 3d3e18a..bf9016b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,7 +1,7 @@
 SUBDIRS = icons pieces textures
 
 desktopdir = $(datadir)/applications
-desktop_in_files = glchess.desktop.in
+desktop_in_files = gnome-chess.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
diff --git a/data/glchess.desktop.in b/data/gnome-chess.desktop.in
similarity index 100%
rename from data/glchess.desktop.in
rename to data/gnome-chess.desktop.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 2464f92..59981e0 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,8 +1,8 @@
 # List of source files containing translatable strings.
 # Please keep this file in alphabetical order.
 [encoding: UTF-8]
-data/glchess.desktop.in
 data/gnome-chess.appdata.xml.in
+data/gnome-chess.desktop.in
 [type: gettext/glade]data/gnome-chess.ui
 [type: gettext/glade]data/menu.ui
 data/org.gnome.gnome-chess.gschema.xml
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 1df0cf5..b0bda37 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -2127,9 +2127,6 @@ class GnomeChess
         Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
         Intl.textdomain (GETTEXT_PACKAGE);
 
-        /* This can probably be removed if the desktop file is renamed to gnome-chess.desktop */
-        Environment.set_prgname ("glchess");
-
         var c = new OptionContext (/* Arguments and description for --help text */
                                    _("[FILE] - Play Chess"));
         c.add_main_entries (options, GETTEXT_PACKAGE);


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