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

Bug 391275

Summary: x11-misc/lightdm - when /etc/init.d/xdm is used, the script should have "need dbus"
Product: Gentoo Linux Reporter: David Butler <croepha>
Component: New packagesAssignee: Markos Chandras (RETIRED) <hwoarang>
Status: RESOLVED FIXED    
Severity: normal CC: x11
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Butler 2011-11-21 18:22:21 UTC
The xdm initscript should depend on dbus when configured to use lightdm

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/dbus stop
2. /etc/init.d/xdm restart

Actual Results:  
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.0.6, UID=0 PID=3718
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for automatic login as user flock
[+0.00s] DEBUG: Starting local X display
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Activating VT 7
[+0.01s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.23s] DEBUG: Launching X Server
[+0.23s] DEBUG: Launching process 3725: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.23s] DEBUG: Waiting for ready signal from X server :0


Expected Results:  
# cat /var/log/lightdm/lightdm.log 
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.0.6, UID=0 PID=3492
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for automatic login as user flock
[+0.00s] DEBUG: Starting local X display
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Activating VT 7
[+0.01s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+1.27s] DEBUG: Launching X Server
[+1.27s] DEBUG: Launching process 3500: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+1.27s] DEBUG: Waiting for ready signal from X server :0
[+1.27s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+1.28s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+2.06s] DEBUG: Got signal 10 from process 3500
[+2.06s] DEBUG: Got signal from X server :0
[+2.06s] DEBUG: Connecting to XServer :0
[+2.06s] DEBUG: Automatically logging in user flock
[+2.11s] DEBUG: pam_start("lightdm-autologin", "flock") -> (0x97d2000, 0)
[+2.11s] DEBUG: pam_authenticate(0x97d2000, 0) -> 0 (Success)
[+2.11s] DEBUG: pam_acct_mgmt(0x97d2000, 0) -> 0 (Success)
[+2.11s] DEBUG: User flock authorized
[+3.43s] DEBUG: Starting user session
[+3.53s] DEBUG: Dropping privileges to uid 102
[+3.53s] DEBUG: Writing /var/cache/flock/.dmrc
[+3.53s] DEBUG: Restoring privileges
[+3.53s] DEBUG: Starting session gnome as user flock
[+3.53s] DEBUG: Failed to load session file /usr/share/xsessions/gnome.desktop: No such file or directory:
[+3.53s] DEBUG: Failed to start autologin session
[+3.53s] DEBUG: Starting greeter session
[+3.57s] DEBUG: pam_start("lightdm", "root") -> (0x97e2358, 0)
[+3.57s] DEBUG: Starting session lightdm-qt-greeter as user root
[+3.58s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+3.58s] DEBUG: Launching session
[+3.59s] DEBUG: pam_set_item(0x97e2358, 3, ":0") -> 0 (Success)
[+3.59s] DEBUG: pam_open_session(0x97e2358, 0) -> 0 (Success)
[+3.80s] DEBUG: Opened ConsoleKit session ca6fb3fb474d776a6561809a0003d1a6-1321899299.717245-813502567
[+3.80s] DEBUG: Dropping privileges to uid 0
[+3.80s] DEBUG: Adding session authority to /root/.Xauthority
[+3.80s] DEBUG: Restoring privileges
[+3.80s] DEBUG: Launching process 3585: /usr/sbin/lightdm-qt-greeter
[+3.80s] DEBUG: pam_setcred(0x97e2358, PAM_ESTABLISH_CRED) -> 0 (Success)
[+3.80s] DEBUG: PAM returns environment ''
[+6.22s] DEBUG: Read 8 bytes from greeter
[+6.22s] DEBUG: Read 9 bytes from greeter
[+6.22s] DEBUG: Greeter connected version=1.0.6
[+6.22s] DEBUG: Wrote 98 bytes to greeter
[+6.22s] DEBUG: Greeter connected, display is ready
[+6.22s] DEBUG: New display ready, switching to it
[+6.22s] DEBUG: Activating VT 7
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-11-23 22:04:42 UTC
@x11 people: Is it possible to do that? maybe add "need dbus" when DISPLAYMANAGER="lightdm" in depend() function?
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-24 09:34:52 UTC
"need dbus" is probably not necessary.
We could put "use dbus" as suggested in bug 390609.
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-24 13:11:51 UTC
xorg-server-1.11.2-r2 added "use dbus" to the init script.