[devhelp] devhelp: Make DBus-activatable
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] devhelp: Make DBus-activatable
- Date: Sun, 24 May 2015 08:38:01 +0000 (UTC)
commit daa9ada79d650bc5c7853b4099bb81595e497968
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 16 16:39:54 2014 -0700
devhelp: 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=728384
configure.ac | 2 +-
data/Makefile.am | 12 +++++++++++-
...sktop.in.in => org.gnome.Devhelp.desktop.in.in} | 1 +
3 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6934a69..80d0fe2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,7 +103,7 @@ po/Makefile.in
src/Makefile
data/Makefile
data/libdevhelp-3.0.pc
-data/devhelp.desktop.in
+data/org.gnome.Devhelp.desktop.in
data/icons/Makefile
data/dtd/Makefile
misc/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index ca237ee..7318d96 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -26,9 +26,18 @@ appdata_DATA = $(app_data_files)
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
-desktop_in_files = devhelp.desktop.in
+desktop_in_files = org.gnome.Devhelp.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = org.gnome.Devhelp.service
+
+org.gnome.Devhelp.service: Makefile
+ $(AM_V_GEN) (echo '[D-BUS Service]'; \
+ echo 'Name=org.gnome.Devhelp'; \
+ echo 'Exec=${bindir}/devhelp --gapplication-service') > $ tmp && \
+ mv $ tmp $@
+
EXTRA_DIST = \
libdevhelp-3.0.pc.in \
$(desktop_in_files) \
@@ -43,4 +52,5 @@ CLEANFILES = \
DISTCLEANFILES = \
$(desktop_DATA) \
+ $(dbusservice_DATA) \
$(app_data_files)
diff --git a/data/devhelp.desktop.in.in b/data/org.gnome.Devhelp.desktop.in.in
similarity index 95%
rename from data/devhelp.desktop.in.in
rename to data/org.gnome.Devhelp.desktop.in.in
index 27982d7..3c61788 100644
--- a/data/devhelp.desktop.in.in
+++ b/data/org.gnome.Devhelp.desktop.in.in
@@ -13,3 +13,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=devhelp
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version= VERSION@
+DBusActivatable=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]