Commit 6192f56b authored by Matthias Clasen's avatar Matthias Clasen
Browse files

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
parent 7c363853
......@@ -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 :
......
......@@ -8,3 +8,4 @@ Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;HardwareSettings;
DBusActivatable=true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment