You are not logged in.

#1 2011-01-18 21:53:12

Velophile
Member
Registered: 2009-12-15
Posts: 48

[SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Hi,

Just done a system update, last one was on the 15th Jan 2011, it's picked up all the new XFCE 4.8 stuff and that seems to be ok other than the Shutdown and Reboot buttons on the "Action Buttons" panel plugin are disabled (hibernate, suspend are missing).

I've looked at the XFCE wiki pages and added myself to the 'power' group;

$ groups
wheel audio power users

the /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla file looks to be in place:

-rw-r--r-- 1 root root 751 Jan 16 17:38 /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla

and it appears to have the correct details in there

 [Local restart]
#Identity=unix-user: your_username
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes

Also, the wastebasket plugin is failing with "Failed to connect to Wastebasket: Operation not supported".  These all worked before the update (as did the Mail Watcher plugin), any ideas please?

Last edited by Velophile (2011-01-19 20:58:14)

Offline

#2 2011-01-18 22:44:47

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Additionally the applications menu's failing with :

failed to load the applications menu.  File menus/applications.menu not found

there is an applications.menu file though:

$ locate .menu
/etc/xdg/menus/xfce-applications.menu

And empathy is also bust; the icons not showing in the notification area and it doesn't appear to logon or show the status in the empathy window.

Offline

#3 2011-01-18 22:50:00

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Velophile wrote:

Additionally the applications menu's failing with :

failed to load the applications menu.  File menus/applications.menu not found

there is an applications.menu file though:

What command line are you using to start xfce?

Offline

#4 2011-01-18 22:51:21

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

~/.xinitrc has:

#!/bin/bash

eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh)

exec dbus-launch ck-launch-session xfce4-session

Offline

#5 2011-01-18 22:53:06

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4

works great for me here

Offline

#6 2011-01-18 22:59:47

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Thanks skunktrader, that's sorted the menu and empathy problems out.

Just the lack of shutdown/restart buttons now

Offline

#7 2011-01-18 23:07:28

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

It looks like the wastebasket requires fuse, gvfs and dependencies installed before it'll work.

Offline

#8 2011-01-19 13:27:37

delaerp
Member
Registered: 2011-01-19
Posts: 2

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

adding myself to the power group worked for me.

Offline

#9 2011-01-19 14:25:48

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Thanks delaerp, as above, I tried that and it's not worked.

Offline

#10 2011-01-19 18:50:36

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Could this error from the auth.log have anything to do with it?:

gnome-keyring-daemon[2030]: couldn't set environment variable in session: The name org.gnome.SessionManager was not provided by any .service files

Would appear I have a consolekit session:

Session1:
    unix-user = '1000'
    realname = 'me'
    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-01-19T18:33:27.019761Z'
    login-session-id = '4294967295'
Session2:
    unix-user = '1000'
    realname = 'me'
    seat = 'Seat1'
    session-type = ''
    active = FALSE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-01-19T18:33:27.673245Z'
    login-session-id = '4294967295'

Any hints on where I can look? I've had a go at grep'ing the logs for polkit and ck- but not found anything.

Offline

#11 2011-01-19 19:16:00

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Put dbus in DAEMONS in rc.conf, and ck-launch-session xfce4-session in .xinitrc. Then startx should give you a functional xfce desktop, including reboot/shutdown. Adding yourself to various groups (such as power) is useless, since your priviledges are anyway escaladed by the consolekit. For instance, try removing yourself from all gorups, except users. Then, play audio from console -> fail. Then, login to xfce with consolekit, play audio again -> success.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#12 2011-01-19 20:21:11

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Hi Leonid.I

rc.conf:

DAEMONS=(syslog-ng dbus @wicd @crond @alsa slim)

~/.xinirc:

#exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4

ck-launch-session xfce4-session

The one that's commented out in .xinitrc works best as it means the XFCE4 application menu doesn't fail (see above).  I tried with a a plain ck-launch-session and that didn't get the shutdown/reboot working.  I also tried

ck-launch-session startxfce4

And that got the XFCE app menu working again but still not the shutdown/reboot buttons.  Just for completeness sake I also tried:

exec ck-launch-session dbus-launch startxfce4

Same, no reboot/shutdown.

Offline

#13 2011-01-19 20:56:56

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Sorry to drone on but I've just tried disabling all the DAEMONS apart from syslog-ng and dbus and run a manual startx from tty and that' works fine..I get the shutdown/reboot/suspend/hibernate buttons.  So, something in slim by the looks of it, so I've purged slim off the machine (pacman -Rns slim) and tried GDM which worked ok.  Removed GDM and tried slim again and it's working....no idea what the problem was but it's gone away.

Thanks for the help, some was direct and some indirectly lead me to the 'fix' :-)

Offline

#14 2011-01-31 14:24:36

mumpf
Member
From: Switzerland
Registered: 2006-09-05
Posts: 95

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

just to confirm: I could solve the "failed to load the applications menu.  File menus/applications.menu not found" issue by uninstalling and installing slim:
1. pacman -Rns slim
2. pacman -S slim
3. logout (no reboot!) -> menue reappears. Thanks for the slim-hint, Velophile :-)

First I have tried the ~/.xinitrc change:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4

but that didn't work. By the way: I have done the pacman -Syu today.

Last edited by mumpf (2011-01-31 14:27:43)

Offline

#15 2011-01-31 14:30:31

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Welcome, I suspect it was amendments I'd made to the SLIM config file to try getting Gnome Keyring working as per the wiki:

https://wiki.archlinux.org/index.php/Sl … me_Keyring

Where the login_cmd is modified.  Can't be sure though.

Offline

#16 2011-01-31 16:47:23

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Velophile wrote:

Welcome, I suspect it was amendments I'd made to the SLIM config file to try getting Gnome Keyring working as per the wiki:

https://wiki.archlinux.org/index.php/Sl … me_Keyring

Where the login_cmd is modified.  Can't be sure though.

Have a look at /etc/slim.conf. You are still talking about xfce, right? Why do you even need gnome-keyring?

Also, you don't need any reference to dbus in .xinitrc, if you have startxfce4 there, because:

/usr/bin/startxfce4 -> /etc/xdg/xfce4/xinitrc -> dbus-launch
====
~> cat  /etc/xdg/xfce4/xinitrc | gr dbus
# Use dbus-launch if installed.
    if which dbus-launch >/dev/null 2>&1; then
        eval `dbus-launch --sh-syntax --exit-with-session`
        # some older versions of dbus don't export the var properly
        echo "Could not find dbus-launch; Xfce will not work properly" >&2

Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#17 2011-01-31 19:43:23

Velophile
Member
Registered: 2009-12-15
Posts: 48

Re: [SOLVED] XFCE 4.8 Shutdown and Reboot disabled

Have a look at /etc/slim.conf

Hi, not much point looking at /etc/slim.conf as I cleaned slim off and reinstalled it on the 19th (as posted above) so any changes I'd made have gone.

You are still talking about xfce, right? Why do you even need gnome-keyring?

Yep, XFCE4.  Using gnome-keyring as I use network-manager, from what I understand this is the tool that saves me from having to type in my password when I connect to the wifi and use empathy.

Also, you don't need any reference to dbus in .xinitrc

Ok, thanks, didn't know that and hadn't looked through the script files to see if one of them did the job.

Offline

Board footer

Powered by FluxBB