Commit f6af0f80 authored by Matthias Clasen's avatar Matthias Clasen Committed by Stefano Facchini
Browse files

baobab: 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=727918
parent 60391950
......@@ -7,7 +7,7 @@ baobabicon_DATA = \
$(NULL)
baobabappdir = $(datadir)/applications
baobabapp_in_files = baobab.desktop.in
baobabapp_in_files = org.gnome.baobab.desktop.in
baobabapp_DATA = $(baobabapp_in_files:.desktop.in=.desktop)
$(baobabapp_in_files): $(baobabapp_in_files:.desktop.in=.desktop.in.in)
......@@ -19,6 +19,15 @@ appdatadir = $(datadir)/appdata
appdata_in_files = baobab.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
dbusservicedir = $(datadir)/dbus-1/services
dbusservice_DATA = org.gnome.baobab.service
org.gnome.baobab.service: Makefile
$(AM_V_GEN) (echo '[D-BUS Service]'; \
echo 'Name=org.gnome.baobab'; \
echo 'Exec=${bindir}/baobab --gapplication-service') > $@.tmp && \
mv $@.tmp $@
gsettingsschema_in_files = org.gnome.baobab.gschema.xml.in
gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
.PRECIOUS: $(gsettings_SCHEMAS)
......@@ -30,7 +39,7 @@ gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
man_MANS = baobab.1
EXTRA_DIST = \
baobab.desktop.in.in \
org.gnome.baobab.desktop.in.in \
$(gsettingsschema_in_files) \
$(man_MANS) \
$(baobabicon_DATA) \
......
......@@ -15,3 +15,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-utils
X-GNOME-Bugzilla-Component=baobab
X-GNOME-Bugzilla-Version=@VERSION@
DBusActivatable=true
Markdown is supported
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