[gnome-nibbles] Make D-Bus activatable
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] Make D-Bus activatable
- Date: Sat, 13 Feb 2016 02:17:02 +0000 (UTC)
commit 0205d06107b948f118368ce43b8017ba73fde1f3
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Fri Feb 12 20:16:08 2016 -0600
Make D-Bus activatable
Why not?
data/Makefile.am | 11 +++++++++++
data/org.gnome.Nibbles.desktop.in | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 8b8b2fd..e4f13a6 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,5 +1,14 @@
SUBDIRS = icons levels pix
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = org.gnome.Nibbles.service
+
+org.gnome.Nibbles.service: Makefile
+ $(AM_V_GEN) (echo '[D-BUS Service]'; \
+ echo 'Name=org.gnome.Nibbles'; \
+ echo 'Exec=${bindir}/gnome-nibbles --gapplication-service') > $ tmp && \
+ mv $ tmp $@
+
desktopdir = $(datadir)/applications
desktop_in_files = org.gnome.Nibbles.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@@ -37,11 +46,13 @@ dist_sounds_DATA = \
EXTRA_DIST = \
$(appstream_in_files) \
+ $(dbusservice_DATA) \
$(desktop_in_files) \
$(gsettings_SCHEMAS)
CLEANFILES = \
$(appstream_XML) \
+ $(dbusservice_DATA) \
$(desktop_DATA)
AM_DISTCHECK_CONFIGURE_FLAGS == --enable-appdata-check
diff --git a/data/org.gnome.Nibbles.desktop.in b/data/org.gnome.Nibbles.desktop.in
index 24e84d9..1ef674f 100644
--- a/data/org.gnome.Nibbles.desktop.in
+++ b/data/org.gnome.Nibbles.desktop.in
@@ -8,3 +8,4 @@ Terminal=false
Type=Application
Categories=GNOME;GTK;Game;ArcadeGame;
StartupNotify=true
+DBusActivatable=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]