[gnome-disk-utility] gnome-disks: Make DBus-activatable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] gnome-disks: Make DBus-activatable
- Date: Sat, 23 May 2015 16:00:33 +0000 (UTC)
commit 6192f56beb27ed573d18dfb0a0f080a471a1cef4
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 15 14:23:47 2014 -0700
gnome-disks: 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=728299
data/Makefile.am | 12 +++++++++++-
...desktop.in => org.gnome.DiskUtility.desktop.in} | 1 +
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 872dda1..7ae2241 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -4,13 +4,22 @@ SUBDIRS = icons
desktopdir = $(datadir)/applications
desktop_in_files = \
- gnome-disks.desktop.in \
+ org.gnome.DiskUtility.desktop.in \
gnome-disk-image-mounter.desktop.in \
gnome-disk-image-writer.desktop.in \
$(NULL)
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = org.gnome.DiskUtility.service
+
+org.gnome.DiskUtility.service: Makefile
+ $(AM_V_GEN) (echo '[D-BUS Service]'; \
+ echo 'Name=org.gnome.DiskUtility'; \
+ echo 'Exec=${bindir}/gnome-disks --gapplication-service') > $ tmp && \
+ mv $ tmp $@
+
# GSettings schemas
gsettings_SCHEMAS = \
org.gnome.Disks.gschema.xml \
@@ -28,6 +37,7 @@ EXTRA_DIST = \
CLEANFILES = \
$(gsettings_SCHEMAS) \
$(desktop_DATA) \
+ $(dbusservice_DATA) \
$(NULL)
clean-local :
diff --git a/data/gnome-disks.desktop.in b/data/org.gnome.DiskUtility.desktop.in
similarity index 94%
rename from data/gnome-disks.desktop.in
rename to data/org.gnome.DiskUtility.desktop.in
index 1abe566..8e1ebbb 100644
--- a/data/gnome-disks.desktop.in
+++ b/data/org.gnome.DiskUtility.desktop.in
@@ -8,3 +8,4 @@ Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;HardwareSettings;
+DBusActivatable=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]