You are not logged in.
now,it just logging out.
i'm reinstall xfce4-session (4.8.2-2 -> 4.8.2-1) ,it's worked right.
and,if i using slim for autologin with inittab method,it's worked too.
.xinitrc
...
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4
...
inittab
id:5:initdefault:
# Boot to X11
#id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
x:5:once:/bin/su - -- yan -l -c '/usr/bin/startx </dev/null >/dev/null 2>&1'
# End of file
Offline
The xfce4-session 4.8.2-1 to 4.8.2-2 upgrade removed its custom policykit rules (files in /etc/polkit-1/localauthority/50.local.org) and the fact that you now can't reboot/shutdown anymore means that you have an incorrect ConsoleKit setup; their removal shouldn't have mattered. SLiM will do do that for you: it's broken currently.
If you check the output of ck-list-sessions, you will see 1 or 2 sessions, neither of which has both active=TRUE and is-local=TRUE. I'd advice to replace SLiM with LXDM: it's also free of unwanted dependencies and does work correctly with current ConsoleKit.
You are aiming for output much like:
[rene@e600 ~]$ ck-list-sessions
Session1:
unix-user = '1000'
realname = ''
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-11-08T01:17:48.078956Z'
login-session-id = ''
[rene@e600 ~]$
Offline
See my reply here: https://bbs.archlinux.org/viewtopic.php … 4#p1013854
Offline
Thanks a lot.
this is my ck-list-sessions output with using slim.
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-16T11:15:30.843654Z'
login-session-id = '1'
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-16T11:15:30.177586Z'
login-session-id = '1'
nnnn...it have been same issue after add *.pkla
And sorry for my english
Offline
Your /home/~/.xinitrc should have the following for slim.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
Your /etc/inittab should have the following:
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >/dev/null 2>&1
#x:5:respawn:/usr/sbin/lxdm >/dev/null 2>&1
Your /etc/slim.conf should have the following line:
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
You need dbus in your daemons line of /etc/rc.conf.
I also have the following which may be needed:
/home/~/.bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
/home/~/.bash_profile
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
export EDITOR=nano
export GREP_COLOR="1;33"
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
startx
logout
fi
Note: you no longer need the .pkla files, but you do need polkit-gnome and gvfs for thunar.
Offline