[rygel] ui: Provide .desktop file for rygel-preferences
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] ui: Provide .desktop file for rygel-preferences
- Date: Fri, 12 Jun 2009 12:22:29 -0400 (EDT)
commit b25d9a97c1f5b30313ec505ecb2b7936c2216951
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Jun 7 22:08:02 2009 +0300
ui: Provide .desktop file for rygel-preferences
data/Makefile.am | 14 ++++++++++++--
data/rygel-preferences.desktop.in | 15 +++++++++++++++
2 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index fdd21db..1ee26f5 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -23,7 +23,17 @@ dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
$(dbusservice_DATA): $(dbusservice_in_files) Makefile
@sed -e "s|\ bindir\@|$(bindir)|" $< > $@
-CLEANFILES = $(dbusservice_DATA)
-EXTRA_DIST = $(schema_DATA) $(dbusservice_in_files)
+desktopdir = $(datadir)/applications
+desktop_in_files = rygel-preferences.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+# Rule to create the .desktop files
+$(desktop_DATA): $(desktop_in_files) Makefile
+ @sed -e "s,\$${prefix},${prefix},g" \
+ -e "s,\$${version},${PACKAGE_VERSION},g" \
+ $(@:.desktop=.desktop.in) > $@
+
+CLEANFILES = $(dbusservice_DATA) $(desktop_DATA)
+EXTRA_DIST = $(schema_DATA) $(dbusservice_in_files) $(desktop_in_files)
MAINTAINERCLEANFILES = Makefile.in
diff --git a/data/rygel-preferences.desktop.in b/data/rygel-preferences.desktop.in
new file mode 100644
index 0000000..7979299
--- /dev/null
+++ b/data/rygel-preferences.desktop.in
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Rygel Preferences
+Name[en_GB]=Rygel Preferences
+GenericName=UPnP/DLNA Preferences
+GenericName[en_GB]=UPnP/DLNA Preferences
+Categories=Settings;X-GNOME-PersonalSettings;
+Exec=rygel-preferences
+Terminal=false
+Type=Application
+StartupNotify=true
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=Rygel
+X-GNOME-Bugzilla-Component=rygel-preferences
+X-GNOME-Bugzilla-Version=${version}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]