LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Change "Logout" layout from XFCE (https://www.linuxquestions.org/questions/linux-desktop-74/change-logout-layout-from-xfce-871357/)

cccc 03-27-2011 07:58 PM

Change "Logout" layout from XFCE
 
hi

I've Debian Squeeze with XFCE desktop installed.
If I would like to logout, then I get some options like: suspend, hibernate, logout etc.
Howto change them to get just shutdown and reboot displayed?

cccc 03-27-2011 08:48 PM

"Suspend" and "Hibernate" I can easily disable using these commands:
Code:

# xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'false'
# xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false'

but it doesn't work if I try to disable "Logout" in the same way:
Code:

# xfconf-query -c xfce4-session -np '/shutdown/ShowLogout' -t 'bool' -s 'false'
Even doesn't work if I try to edit directly:

/home/user/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml.

Knows someone howto disable "Logout" button from the logout dialog under XFCE?

cccc 09-25-2012 05:55 PM

I've solved this problem now:

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

[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:
Code:

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



All times are GMT -5. The time now is 10:29 PM.