Page 1 of 1

SOLVED! change options in the Logout main menu

Posted: Sun Mar 04, 2012 11:12 pm
by ccc
Hi

Howto disable (hide) all options in the Logout main menu instead of "Shutdown"?

Re: change options in the Logout main menu

Posted: Tue Sep 25, 2012 8:14 pm
by ccc
To solve this problem, I've done a little trick:

I've changed /usr/share/applications/lxde-logout.desktop:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Logout
Name[de]=Abmelden
Name[fi]=Kirjaudu ulos
Name[pt]=Terminar sessão
Name[zh_TW]=登出
Comment=shutdown
Comment[de]=Abmelden, herunterfahren oder neu starten
Comment[fi]=Kirjaudu ulos, sammuta tai käynnistä tietokone uudelleen
Comment[pt]=Terminar sessão, desligar ou reiniciar
Comment[zh_TW]=登出、關機、或重新開機
Icon=gnome-logout
Exec=/usr/bin/lxde-session-shutdown.sh
NoDisplay=true
I've changed in /.config/lxpanel/LXDE/config:

Code: Select all

[Command]
FileManager=pcmanfm %s
Terminal=x-terminal-emulator
[b]Logout=/usr/bin/lxde-session-shutdown.sh[/b]
and I've created this shutdown script /usr/bin/lxde-session-shutdown.sh:

Code: Select all

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