[gnome-2048] Rename the desktop and appdata files
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Rename the desktop and appdata files
- Date: Sun, 22 Feb 2015 23:46:04 +0000 (UTC)
commit 73f6d640ac1f7dc4461753a9b31d2e81a8aa984e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Feb 22 10:53:23 2015 -0600
Rename the desktop and appdata files
We need to use reverse-DNS notation for D-Bus activation. This commit
doesn't add support for D-Bus activation, it just future-proofs the name
of the desktop file so we don't have to later rename it and add it to the
hardcoded list of renamed desktop files in gnome-shell.
https://bugzilla.gnome.org/show_bug.cgi?id=744972
data/Makefile.am | 4 ++--
....xml.in => org.gnome.gnome-2048.appdata.xml.in} | 2 +-
....desktop.in => org.gnome.gnome-2048.desktop.in} | 0
src/application.vala | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index c4e64b3..e79cac8 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -4,12 +4,12 @@ gsettings_SCHEMAS = org.gnome.2048.gschema.xml
@GSETTINGS_RULES@
desktopdir = $(datadir)/applications
-desktop_in_files = gnome-2048.desktop.in
+desktop_in_files = org.gnome.gnome-2048.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
appdatadir = $(datadir)/appdata
-appdata_in_files = gnome-2048.appdata.xml.in
+appdata_in_files = org.gnome.gnome-2048.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
diff --git a/data/gnome-2048.appdata.xml.in b/data/org.gnome.gnome-2048.appdata.xml.in
similarity index 96%
rename from data/gnome-2048.appdata.xml.in
rename to data/org.gnome.gnome-2048.appdata.xml.in
index 8726dd5..558af21 100644
--- a/data/gnome-2048.appdata.xml.in
+++ b/data/org.gnome.gnome-2048.appdata.xml.in
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Juan R. GarcĂa Blanco -->
<application>
- <id type="desktop">gnome-2048.desktop</id>
+ <id type="desktop">org.gnome.gnome-2048.desktop</id>
<metadata_license>CC-BY-SA-3.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<_name>GNOME 2048</_name>
diff --git a/data/gnome-2048.desktop.in b/data/org.gnome.gnome-2048.desktop.in
similarity index 100%
rename from data/gnome-2048.desktop.in
rename to data/org.gnome.gnome-2048.desktop.in
diff --git a/src/application.vala b/src/application.vala
index e3094fd..5a958eb 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -406,7 +406,7 @@ public class Application : Gtk.Application
return Posix.EXIT_FAILURE;
}
- Environment.set_application_name ("2048");
+ Environment.set_application_name ("org.gnome.2048");
Gtk.Window.set_default_icon_name ("gnome-2048");
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]