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



commit bd88ef25e565de1bacf5e110f521a1513da427bf
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 5 16:03:18 2014 -0600

    Rename desktop file so we appear in GNOME Software

 data/Makefile.am                                   |    2 +-
 data/gnome-robots.appdata.xml.in                   |    2 +-
 ...gnobots2.desktop.in => gnome-robots.desktop.in} |    0
 po/POTFILES.in                                     |    2 +-
 src/gnobots.c                                      |    6 ------
 5 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index f219edb..a9cbd69 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -50,7 +50,7 @@ config_DATA = robots2.cfg \
               nightmare.cfg
 
 desktopdir = $(datadir)/applications
-desktop_in_files = gnobots2.desktop.in
+desktop_in_files = gnome-robots.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
diff --git a/data/gnome-robots.appdata.xml.in b/data/gnome-robots.appdata.xml.in
index b671775..8f91bbe 100644
--- a/data/gnome-robots.appdata.xml.in
+++ b/data/gnome-robots.appdata.xml.in
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2013 Michael Catanzaro -->
 <application>
- <id type="desktop">gnobots2.desktop</id>
+ <id type="desktop">gnome-robots.desktop</id>
  <licence>CC0</licence>
  <_name>GNOME Robots</_name>
  <description>
diff --git a/data/gnobots2.desktop.in b/data/gnome-robots.desktop.in
similarity index 100%
rename from data/gnobots2.desktop.in
rename to data/gnome-robots.desktop.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ac40ee9..e5f2680 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/gnobots2.desktop.in
 data/gnome-robots.appdata.xml.in
+data/gnome-robots.desktop.in
 data/org.gnome.robots.gschema.xml
 src/game.c
 src/games-controls.c
diff --git a/src/gnobots.c b/src/gnobots.c
index 24a37bb..0d7483b 100644
--- a/src/gnobots.c
+++ b/src/gnobots.c
@@ -183,12 +183,6 @@ 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]