You are not logged in.
I discovered how to Restart, Shutdown, Suspend, Hibernate, as regular user when using Xfce.
There are the following 2 requirements:
(1) In ~/.xinitrc you need to have 'ck-launch-session' in the exec line, i.e. exec ck-launch-session startxfce4
(2) You need xfce4-power-manager installed.
{Haven't actually tried the Suspend and Hibernate buttons yet, but at least they are available}
Earlier I edited the files in /etc/polkit-1/localauthority/50-local.d/ by uncommenting and editing the lines 'Identity=unix-user:myusername' everywhere I found them. I am not sure this made any difference regarding this topic or not, but I am mentioning it anyway.
FWIW, ck-list-sessions shows the following. Not sure why my username is null and not displayed.
[root@myhost ~]# ck-list-sessions
Session2:
unix-user = '1000'
realname = ''
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-10-18T22:23:20.667298Z'
login-session-id = '1'
Session1:
unix-user = '1000'
realname = ''
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-18T22:23:20.323361Z'
login-session-id = '1'
[root@myhost ~]#
EDIT: See also my post here: https://bbs.archlinux.org/viewtopic.php … 7#p1009987
Last edited by David Batson (2011-11-04 16:45:23)
Offline