From: Simon McVittie Date: Thu, 24 Sep 2015 13:59:50 +0100 Subject: When starting from the .desktop file, use D-Bus activation This ensures that syncevolution is consistently a child of systemd (if using the systemd user service) or dbus-daemon (otherwise). --- src/dbus/server/syncevo-dbus-server-startup.sh.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/dbus/server/syncevo-dbus-server-startup.sh.in b/src/dbus/server/syncevo-dbus-server-startup.sh.in index 6f9d7ba..1db38b4 100755 --- a/src/dbus/server/syncevo-dbus-server-startup.sh.in +++ b/src/dbus/server/syncevo-dbus-server-startup.sh.in @@ -1,3 +1,13 @@ #! /bin/sh sleep 120 -exec @libexecdir@/syncevo-dbus-server @SYNCEVO_DBUS_SERVER_ARGS@ 2>/dev/null 1>&1 + +# Use D-Bus activation to start it +exec dbus-send \ + --session + --type=method_call \ + --print-reply \ + --dest=org.freedesktop.DBus \ + /org/freedesktop/DBus \ + org.freedesktop.DBus.StartServiceByName \ + string:org.syncevolution \ + uint32:0