[gnome-dictionary] Make DBus-activatable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dictionary] Make DBus-activatable
- Date: Fri, 21 Nov 2014 16:39:54 +0000 (UTC)
commit bf83d76ccbda63bf62fc04ca76815664c730c94f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 15 16:07:26 2014 -0700
Make DBus-activatable
This commit installs a service file, renames the desktop file
to follow the bus name, and adds the DBusActivatable key to the
desktop file, following
https://wiki.gnome.org/HowDoI/DBusApplicationLaunching
https://bugzilla.gnome.org/show_bug.cgi?id=728302
data/Makefile.am | 16 +++++++++++++---
...op.in.in => org.gnome.Dictionary.desktop.in.in} | 1 +
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 67813de..cc6b5e8 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -7,15 +7,24 @@ man_MANS = gnome-dictionary.1
EXTRA_DIST += $(man_MANS)
gdictappdir = $(datadir)/applications
-gdictapp_in_files = gnome-dictionary.desktop.in
+gdictapp_in_files = org.gnome.Dictionary.desktop.in
gdictapp_DATA = $(gdictapp_in_files:.desktop.in=.desktop)
-EXTRA_DIST += gnome-dictionary.desktop.in.in
+EXTRA_DIST += org.gnome.Dictionary.desktop.in.in
$(gdictapp_in_files): $(gdictapp_in_files:.desktop.in=.desktop.in.in)
$(AM_V_GEN)sed -e "s|\ VERSION\@|@VERSION@|" $< > $@
@INTLTOOL_DESKTOP_RULE@
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = org.gnome.Dictionary.service
+
+org.gnome.Dictionary.service: Makefile
+ $(AM_V_GEN) (echo '[D-BUS Service]'; \
+ echo 'Name=org.gnome.Dictionary'; \
+ echo 'Exec=${bindir}/gnome-dictionary --gapplication-service') > $ tmp && \
+ mv $ tmp $@
+
@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/appdata
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
@@ -50,7 +59,8 @@ CLEANFILES += $(gsettings_SCHEMAS) \
$(dictsource_DATA) \
$(gdictapp_in_files) \
$(gdictapp_DATA) \
- $(appdata_DATA)
+ $(appdata_DATA) \
+ $(dbusservice_DATA)
@GSETTINGS_RULES@
diff --git a/data/gnome-dictionary.desktop.in.in b/data/org.gnome.Dictionary.desktop.in.in
similarity index 95%
rename from data/gnome-dictionary.desktop.in.in
rename to data/org.gnome.Dictionary.desktop.in.in
index 800f708..1932cdc 100644
--- a/data/gnome-dictionary.desktop.in.in
+++ b/data/org.gnome.Dictionary.desktop.in.in
@@ -13,3 +13,4 @@ X-GNOME-DocPath=gnome-dictionary/gnome-dictionary.xml
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-dictionary
X-GNOME-Bugzilla-Version= VERSION@
+DBusActivatable=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]