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



commit 8d5e0eaaa295abf01f7ce390fb723eb6b4151cbe
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Feb 5 16:00:17 2014 -0600

    Rename desktop file so we appear in GNOME Software

 data/Makefile.am                                   |    2 +-
 data/gnome-nibbles.appdata.xml.in                  |    2 +-
 ...nibbles.desktop.in => gnome-nibbles.desktop.in} |    0
 po/POTFILES.in                                     |    2 +-
 src/main.c                                         |    6 ------
 5 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 3a3c545..05d5faa 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -15,7 +15,7 @@ sounds_DATA = \
        teleport.ogg
 
 desktopdir=$(datadir)/applications
-desktop_in_files = gnibbles.desktop.in
+desktop_in_files = gnome-nibbles.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
diff --git a/data/gnome-nibbles.appdata.xml.in b/data/gnome-nibbles.appdata.xml.in
index 91ed8d8..105d9f5 100644
--- a/data/gnome-nibbles.appdata.xml.in
+++ b/data/gnome-nibbles.appdata.xml.in
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2013 Michael Catanzaro -->
 <application>
- <id type="desktop">gnibbles.desktop</id>
+ <id type="desktop">gnome-nibbles.desktop</id>
  <licence>CC0</licence>
  <_name>GNOME Nibbles</_name>
  <description>
diff --git a/data/gnibbles.desktop.in b/data/gnome-nibbles.desktop.in
similarity index 100%
rename from data/gnibbles.desktop.in
rename to data/gnome-nibbles.desktop.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c419a11..fe02b20 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/gnibbles.desktop.in
 data/gnome-nibbles.appdata.xml.in
+data/gnome-nibbles.desktop.in
 data/org.gnome.nibbles.gschema.xml
 src/board.c
 src/games-controls.c
diff --git a/src/main.c b/src/main.c
index dbc7f7e..436d293 100644
--- a/src/main.c
+++ b/src/main.c
@@ -706,12 +706,6 @@ 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"));
 
   if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) {


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