Can't mount USB keys in xinit sessions

Bug #285054 reported by Loïc Minier
6
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
High
Unassigned
Intrepid
Fix Released
High
Unassigned

Bug Description

ck-list-sessions doesn't list any active session:
Session1:
        uid = '1000'
        realname = 'Loic Minier,,,'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2008-10-17T10:18:08.615074Z'
        idle-since-hint = '2008-10-17T10:18:42.003785Z'
Session2:
        uid = '0'
        realname = 'root'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/pts/7'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2008-10-17T10:55:35.719701Z'
        idle-since-hint = '2008-10-17T13:05:44.002727Z'

I'm logged in via startx and hence can't mount any USB keys; this used to work thanks to a Xsession.d file.

Bye

Revision history for this message
Loïc Minier (lool) wrote :

This affects Ubuntu MID which uses startx.

Revision history for this message
Martin Pitt (pitti) wrote :

I think StevenK had the same problem this morning. However, he confirmed that a "ck-launch-session" in a running X session worked.

My current guess is that $DISPLAY isn't defined at the time when /etc/X11/Xsession.d/90consolekit is ran. Can you please add some debug statements like "env > /tmp/env.txt" and check whether this is the case? Does a fake "export DISPLAY=:0.0" make it work? If so, we at least narrowed down the problem.

Revision history for this message
Loïc Minier (lool) wrote :

Will try that; I'm also thinking that it might the Xsession.d snippet disables itself then the xinit CK support is enabled, that last one being incomplete/broken; need to verify this theory as well.

Revision history for this message
Steve Kowalik (stevenk) wrote :

Looks like it doesn't get run in 90consolekit at all:

if [ -z "$XDG_SESSION_COOKIE" ] && [ -x "$CK_LAUNCH_SESSION" ]; then

And here is the environment at the time of 90consolekit:

USER=ubuntu
MAIL=/var/mail/ubuntu
SHLVL=2
HOME=/home/ubuntu
XDG_SESSION_COOKIE=28e155332bba7eb66e0b852448fd7006-1224575575.81036-500983529
LOGNAME=ubuntu
_=/usr/bin/xinit
TERM=linux
WINDOWPATH=9
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
DISPLAY=:0
LANG=en_US.UTF-8
XAUTHORITY=/home/ubuntu/.Xauthority
SHELL=/bin/bash
RUNNING_UNDER_GDM=yes
PWD=/home/ubuntu

Revision history for this message
Steve Kowalik (stevenk) wrote :

No package, no closing bugs:

ubuntu-mid-default-settings (0.10) intrepid; urgency=low

  * Unset XDG_SESSION_COOKIE just before we call startx so that we get a
    functional ConsoleKit session inside X. (LP: #285054)

 -- Steve Kowalik <email address hidden> Tue, 21 Oct 2008 19:22:28 +1100

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.