On 6 June 2011 09:23, YoYo Siska <y...@gl.ksp.sk> wrote: > On Sun, Jun 05, 2011 at 11:03:54PM +0100, Mick wrote: >> Both consolekit and polkit are running. What could be the problem? >> >> $ ps axf | grep polkit >> 8961 pts/1 SN+ 0:00 \_ grep >> --color=auto polkit >> 5678 ? Sl 0:00 /usr/libexec/polkitd >> >> $ ps axf | grep console >> 5594 ? Ssl 0:00 /usr/sbin/console-kit-daemon >> 9088 pts/1 SN+ 0:00 \_ grep >> --color=auto console >> >> >> I'm starting e17 WM running startx on this box, unlike another >> similarly configured machine where mounting devices works fine but I >> start that with /etc/init.d/xdm (kdm). > > > that console-kit-daemon is running doesn't mean your session is > 'registered' with it, you can check with ck-list-sessions > > yoyo@tabletka ~ $ ck-list-sessions > Session18: > unix-user = '1000' > realname = '(null)' > seat = 'Seat18' > session-type = '' > active = FALSE > x11-display = '' > x11-display-device = '' > display-device = '/dev/ssh' > remote-host-name = ... > is-local = FALSE > on-since = '2011-06-06T07:48:11.669544Z' > login-session-id = '' > Session1: > unix-user = '1000' > realname = '(null)' > seat = 'Seat1' > session-type = '' > active = TRUE > x11-display = ':0' > x11-display-device = '/dev/tty7' > display-device = '' > remote-host-name = '' > is-local = TRUE > on-since = '2011-06-01T17:09:37.282998Z' > login-session-id = '' > > the defaults for disk mounting should be that only active (local?) sessions > can do it... > > here it seems that a normaln console (text) / ssh seesions > are registered in ck through pam, but X session's have to do that > manulally, which i guess is done either in DM's xsession script or in > the startup script of the chosen DE ... > > if your session is not thare, then just add ck-launch-session to the > script you use to start the X session (~/.xinitrc in your case i guess, or > the script you specify to startx)
Thanks yoyo, These are the sessions running: $ ck-list-sessions Session1: unix-user = '1000' realname = '(null)' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2011-06-06T18:06:09.557945Z' login-session-id = '' idle-since-hint = '2011-06-06T18:07:05.864234Z' Session2: unix-user = '1000' realname = '(null)' seat = 'Seat2' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = FALSE on-since = '2011-06-06T18:06:43.077778Z' login-session-id = '' Session3: unix-user = '1000' realname = '(null)' seat = 'Seat3' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = FALSE on-since = '2011-06-06T18:06:44.110526Z' login-session-id = '' Also, the WM is launched with ck-launch-session: 5695 tty1 S 0:00 \_ -bash 5730 tty1 S+ 0:00 \_ /bin/sh /usr/bin/startx 5746 tty1 S+ 0:00 \_ xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /home/michael/.serverauth.5730 5747 tty7 Ss+ 1:10 \_ /usr/bin/X -nolisten tcp :0 -auth /home/michael/.serverauth.5730 5753 tty1 S 0:00 \_ /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session /usr/bin/gpg-agent --sh --write- 5797 tty1 S 0:00 \_ ck-launch-session /usr/bin/enlightenment_start 5802 ? Ss 0:00 \_ /usr/bin/gpg-agent --sh --write-env-file /home/michael/.gnupg/.gpg-agent-info --daemon -- /e 5836 tty1 SLl 1:06 \_ /usr/bin/enlightenment However, from the ck-list-sessions above I can see that only the first session (the one I ran from the console) says is-local = TRUE, is this because this is the only session in which I had to enter a password to login? Does the above look OK? -- Regards, Mick