Hi
Howto disable (hide) all options in the Logout main menu instead of "Shutdown"?
SOLVED! change options in the Logout main menu
SOLVED! change options in the Logout main menu
Last edited by ccc on Tue Sep 25, 2012 8:14 pm, edited 1 time in total.
Re: change options in the Logout main menu
To solve this problem, I've done a little trick:
I've changed /usr/share/applications/lxde-logout.desktop:
I've changed in /.config/lxpanel/LXDE/config:
and I've created this shutdown script /usr/bin/lxde-session-shutdown.sh:
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
Code: Select all
[Command]
FileManager=pcmanfm %s
Terminal=x-terminal-emulator
[b]Logout=/usr/bin/lxde-session-shutdown.sh[/b]
Code: Select all
#! /bin/sh
sudo /sbin/shutdown -h now $*