Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 581416

Summary: xdm init script should automatically start consolekit and dbus for selected DE
Product: Gentoo Linux Reporter: Oleh <moonlapse81>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oleh 2016-04-28 05:45:41 UTC
Currently xdm is set to:

# Start before X
use consolekit dbus xfs

this is true, only when consolekit and dbus both added to runlevel. Otherwise, they will not start. While, it's generally good idea manually add both into openrc runlevels, xdm should  start them automatically.

The fix to this would be:

# Start before X
need consolekit
use xfs
Consolekit init script, in turn, have "need dbus" set. xdm, when starting will start consolekit by needed runlevel, and consolekit will start dbus before by needed runlevel, aswell.

Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-28 06:36:51 UTC
Not every desktop / window manager needs consolekit and/or dbus. That's why our X11 team didn't add these dependencies.

Quick and easy fix for you:

  echo 'rc_need="consolekit" >> /etc/conf.d/xdm'
  rc-update -u
Comment 2 Oleh 2016-04-28 06:45:17 UTC
i'm aware of such workarounds, thx. Mainly it's needed for kde, xfce, mate, so here i my suggestion (for DE/WM, which do need dbus):
	
case ${DISPLAYMANAGER} in
 kdm|kde|whatever login manager make sense)
 need consolekit
;;
esac
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-28 10:26:24 UTC
That doesn't work reliably either. What about non-specific display managers like lightdm/sddm/slim which can work with kde/gnome but also with lightweight window managers?

KF5 (also known as kde5) doesn't ship kdm anymore but suggests to use sddm. But sddm is not kde-specific. So your logic doesn't apply anywhere.