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

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

Details

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.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fvogt created this revision.Mar 19 2018, 9:16 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 19 2018, 9:16 AM
fvogt requested review of this revision.Mar 19 2018, 9:16 AM
davidedmundson accepted this revision.Mar 19 2018, 9:20 AM
This revision is now accepted and ready to land.Mar 19 2018, 9:20 AM
This revision was automatically updated to reflect the committed changes.