Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581416 - xdm init script should automatically start consolekit and dbus for selected DE
Summary: xdm init script should automatically start consolekit and dbus for selected DE
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-28 05:45 UTC by Oleh
Modified: 2021-02-13 20:23 UTC (History)
0 users

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 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.