SOLVED! change options in the Logout main menu

All questions and problems regarding LXDE components including LXSession, LXAppearance, GPicView, Leafpad, LXTerminal, Xarchiver, LXNM to be discussed here.

For PCManFM questions, please ask in the dedicated forum below.
Locked
ccc
Posts: 22
Joined: Sat Mar 03, 2012 2:37 pm

SOLVED! change options in the Logout main menu

Post by ccc »

Hi

Howto disable (hide) all options in the Logout main menu instead of "Shutdown"?
Last edited by ccc on Tue Sep 25, 2012 8:14 pm, edited 1 time in total.
ccc
Posts: 22
Joined: Sat Mar 03, 2012 2:37 pm

Re: change options in the Logout main menu

Post 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 $*
Locked