Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632142 - kde-plasma/plasma-workspace-5.10.4-r2 needs sys-apps/dbus[user-session] if used with systemd
Summary: kde-plasma/plasma-workspace-5.10.4-r2 needs sys-apps/dbus[user-session] if us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-27 13:49 UTC by Nguyen Thai Ngoc Duy
Modified: 2017-10-14 12:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nguyen Thai Ngoc Duy 2017-09-27 13:49:50 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2017-09-29 03:24:51 UTC
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(-)}
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-09-29 03:28:13 UTC
Thanks for your detailed bug report!

Since 5.10.5 is already stable, I've targetted this for the next versions via KDE overlay.
Comment 3 Nguyen Thai Ngoc Duy 2017-09-29 10:12:28 UTC
Great. Thanks!
Comment 4 Michael Palimaka (kensington) gentoo-dev 2017-10-14 12:21:58 UTC
This is in tree with 5.11.0 now.