Bug 689757 - xdm doesn't start ConsoleKit session correctly
Summary: xdm doesn't start ConsoleKit session correctly
Keywords:
Status: CLOSED DUPLICATE of bug 237621
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-xdm
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-22 11:40 UTC by Adam Tkac
Modified: 2018-04-11 12:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-03-23 08:01:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Tkac 2011-03-22 11:40:21 UTC
Description of problem:
Since ConsoleKit 0.4.3 xdm doesn't start CK session correctly.

Currently, session is started via xorg-x11-xinit machinery, in /etc/X11/xinit/xinitrc-common script. However started CK session is broken:

$ ck-list-sessions 
Session2:
        unix-user = '500'
        realname = '(null)'
        seat = 'Seat3'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty8'
        display-device = ''
        remote-host-name = ''
        is-local = FALSE
        on-since = '2011-03-22T11:33:28.960509Z'
        login-session-id = '6'

Note the "FALSE" keywords on active and is-local fields.

Version-Release number of selected component (if applicable):
$ rpm -q xorg-x11-xdm
xorg-x11-xdm-1.1.6-22.fc15.x86_64

How reproducible:
always

Steps to Reproduce:
1. use xdm
2. start X session
  
Actual results:
Session isn't local and active and NetworkManager is not able to connect to wireless network.

Additional info:
I dug around this issue on google and this change in ConsoleKit is intentional.

Possible solution, which fixes this issue in my case is:
1. Don't call ck-xinit-session in /etc/X11/xinit/xinitrc{,-common}
2. Put following line to /etc/pam.d/xdm (I put it after pam_console.so):
  session    required    pam_ck_connector.so

After this change NetworkManager is able to set wifi connection again.

Let me know if you need more info or if I should push my fix and release an update.

Comment 1 Matěj Cepl 2011-03-23 08:01:17 UTC

*** This bug has been marked as a duplicate of bug 237621 ***


Note You need to log in before you can comment on or make changes to this bug.