The startkde script does this # At this point all environment variables are set, let's send it to the DBus session server to update the activation environment if which dbus-update-activation-environment >/dev/null 2>/dev/null ; then dbus-update-activation-environment --systemd --all else /usr/lib64/libexec/ksyncdbusenv fi but without user-session USE flag on dbus, I get this error in SDDM xorg-session.log dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1 and the DBUS_SESSION_BUS_ADDRESS is not set when launching terminals inside Plasma. For many applications this would be fine because they can still find the session bus via ~/.dbus/session-bus. google-chrome however will refuse to connect to session bus because of another bug [1] if this environment variable is not set. As a result, playing videos in chrome will not inhibit screensaver (because that's done via session bus). Rebuild dbus with user-session flag seems to fix this problem for me. It seems Debian hits the same thing [2]. Perhaps we could add a new RDEPEND "systemd? (sys-apps/dbus[user-session])" to plasma-workspace? [1] https://groups.google.com/a/chromium.org/forum/#!topic/infra-dev/jZ4fiwqyDsw [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833318
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=e68106a93cc4612708174e0566f4ed4a9f4ccd43 commit e68106a93cc4612708174e0566f4ed4a9f4ccd43 Author: Michael Palimaka <kensington@gentoo.org> AuthorDate: 2017-09-29 03:22:22 +0000 Commit: Michael Palimaka <kensington@gentoo.org> CommitDate: 2017-09-29 03:24:41 +0000 kde-plasma/plasma-workspace: improve dbus dependencies Bug: https://bugs.gentoo.org/632142 Package-Manager: Portage-2.3.8, Repoman-2.3.3 kde-plasma/plasma-workspace/plasma-workspace-5.10.95.ebuild | 4 +++- kde-plasma/plasma-workspace/plasma-workspace-5.11.49.9999.ebuild | 4 +++- kde-plasma/plasma-workspace/plasma-workspace-9999.ebuild | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-)}
Thanks for your detailed bug report! Since 5.10.5 is already stable, I've targetted this for the next versions via KDE overlay.
Great. Thanks!
This is in tree with 5.11.0 now.