[gnome-boxes] Make Boxes DBus activatable
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Make Boxes DBus activatable
- Date: Mon, 15 Sep 2014 00:08:00 +0000 (UTC)
commit bbd256b110c3e53e4e19cdd25488acfa9db3107e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Sep 14 15:33:20 2014 +0100
Make Boxes DBus activatable
data/Makefile.am | 13 +++++++++++++
data/org.gnome.Boxes.desktop.in.in | 1 +
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 8232486..3267b15 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -44,6 +44,15 @@ disk.img:
gresource_file = gnome-boxes.gresource.xml
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies $(gresource_file))
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = org.gnome.Boxes.service
+
+org.gnome.Boxes.service: Makefile
+ $(AM_V_GEN) (echo '[D-BUS Service]'; \
+ echo 'Name=org.gnome.Boxes'; \
+ echo 'Exec=${bindir}/gnome-boxes --gapplication-service') > $ tmp && \
+ mv $ tmp $@
+
EXTRA_DIST = \
org.gnome.Boxes.desktop.in \
gnome-boxes-search-provider.ini.in \
@@ -59,6 +68,10 @@ EXTRA_DIST = \
$(appdata_in_file) \
$(NULL)
+CLEANFILES = \
+ $(dbusservice_DATA) \
+ $(NULL)
+
DISTCLEANFILES = \
$(gsettings_SCHEMAS) \
$(service_DATA) \
diff --git a/data/org.gnome.Boxes.desktop.in.in b/data/org.gnome.Boxes.desktop.in.in
index 39f356e..e6a8238 100644
--- a/data/org.gnome.Boxes.desktop.in.in
+++ b/data/org.gnome.Boxes.desktop.in.in
@@ -10,3 +10,4 @@ Type=Application
StartupNotify=true
OnlyShowIn=GNOME;
Categories=GNOME;GTK;System;
+DBusActivatable=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]