Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-02-26 13:32:21

ccc
Member
Registered: 2011-02-03
Posts: 27

[Solved] Disable "Logout" button in the logout applet

Hi

I try to create a very simple thin client with XFCE 4.8.
Howto disable "Logout" button in the logout applet under XFCE?
I mean "Logout" option is not possible, when the user press on Logout menu button, then he gets just "Shutdown", "Restart" etc.

I've already tried:

  
xfconf-query -c xfce4-session -np '/shutdown/ShowLogout' -t 'bool' -s 'false'

but it doesn't work.

Offline

#2 2012-02-26 16:10:51

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,127

Re: [Solved] Disable "Logout" button in the logout applet

Does the property exist?

xfconf-query -c xfce4-session -p /shutdown/ShowLogout

If not, then:

xfconf-query -c xfce4-session -p /shutdown/ShowLogout --create --set false --type bool

Offline

#3 2012-02-26 19:31:01

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] Disable "Logout" button in the logout applet

No ideas how you got that information, but no such property exists. You can only disable the shutdown and reboot buttons with kiosk mode, not the log out button.

Offline

#4 2012-09-25 22:54:43

ccc
Member
Registered: 2011-02-03
Posts: 27

Re: [Solved] Disable "Logout" button in the logout applet

Other solution is to change logout to shutdown:

change in /usr/share/applications/xfce4-session-logout.desktop:

[Desktop Entry]
Version=1.0
Type=Application
Exec=/usr/bin/xfce4-session-shutdown.sh
Icon=system-log-out
StartupNotify=false
Terminal=false
Categories=System;X-XFCE;X-Xfce-Toplevel;
OnlyShowIn=XFCE;
Name=Log Out

and using this shutdown script /usr/bin/xfce4-session-shutdown.sh:

#! /bin/sh
sudo /sbin/shutdown -h now $* 

Offline

Board footer

Powered by FluxBB