Lubuntu (LXDE): restore a logout/shutdown icon in the taskbar
From time to time, an inexperienced user for whom I have set up a Lubuntu 12.04 LTS system, inadvertently mess the layout of her taskbar (a lock feature as in KDE's plasmoids would be nice ;-).
While restoring all of her stuff, I couldn't find how to display a shutdown shortcut. This option/item was just not in the widgets list. After a little duckducking, I found I had to edit the following file:
$ sudo leafpad /usr/share/applications/lubuntu-logout.desktop
And comment out1 the line starting with "NoDisplay":
[Desktop Entry] Name=Shutdown Name[zh_TW]=é—œæ©Ÿ Type=Application Comment=Shutdown or Reboot Icon=system-shutdown-panel Exec=lubuntu-logout #NoDisplay=true Categories=Settings;DesktopSettings
After that, I was able to re-add a shutdown icon:
Right Click on LXPanel > Add/Remove Panel Items > Add > Application Launch Bar > Double Click on Application Launch Bar > Preferences > Select Shutdown from the list and Click "Add" > Close > Close
1 or maybe change its value to false, or delete it, be CRAZY!