https://bugs.freedesktop.org/show_bug.cgi?id=92164

--- Comment #1 from Simon McVittie <[email protected]> ---
Created attachment 118590
  --> https://bugs.freedesktop.org/attachment.cgi?id=118590&action=edit
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).

---

I'm less sure about this one. It makes sure only one instance gets started, but
it does rely on having dbus-send(1) installed.

Another possibility would be something like

if [ -d "$XDG_RUNTIME_DIR" ] && [ -d "$XDG_RUNTIME_DIR/systemd" ]; then
    exec systemctl start syncevo-dbus-server.service
elif command -v dbus-send >/dev/null; then
    exec dbus-send [...]
else
    exec @libexecdir@/syncevo-dbus-server [...]
fi

but maybe that's too much complexity?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Syncevolution-issues mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution-issues

Reply via email to