Use dbus-run-session instead of dbus-launch --exit-with-session

Authored by fvogt on Mar 19 2018, 9:11 AM.

Description

Use dbus-run-session instead of dbus-launch --exit-with-session

Summary:
dbus-launch --exit-with-session behaves badly if there's no X server running.
This resulted in it breaking when being launched from gdm or lightdm.

Also, the manpage explicitly states "This option is not recommended".

Test Plan:
Using it right now, started with sddm.
Also verified that nothing remains after logout.

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D11478

Details