Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I cannot seem to be able to add a shutdown button to my LXPanel. In /usr/share/applications there is a Shutdown (lubuntu-logout.desktop) containing the line Exec=lubuntu-logout but it would not run.

It contains the following

[Desktop Entry]
Name=Shutdown
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=lubuntu-logout
Path=
Terminal=false
StartupNotify=false
Categories=Utility;Settings;System;GTK
NoDisplay=false

In usr/bin there is a shell script called lubuntu-logout:

#!/bin/sh
lxsession-logout --banner "/usr/share/lubuntu/images/logout-banner.png" --side=top

Creating a desktop file that will contain the line Exec=lxsession-logout should also work. But it does not!

Trying to make it executable, trying to find permissions in pcmanfm - properties:

enter image description here

In Thunar I can find the settings to make it executable:

enter image description here

But then running it I get

enter image description here

How should I edit it to make it run and then visible in menus so to add it to the panel?

OR: What is the correct content of the shutdown.desktop file?

share|improve this question
    
Do you have this package installed? lubuntu-default-settings –  Uri Herrera Oct 16 '12 at 21:08
    
@Uri Herrera - lubuntu-default-settings 0.29 was installed all this time –  cipricus Jan 22 '13 at 11:31
add comment

1 Answer

up vote 1 down vote accepted

I created a file that works.

Used the line Exec=/usr/bin/lxsession-logout.

Called the file Shutdown-lubuntu.desktop with these lines:

[Desktop Entry]
Name=ShutdownLubuntu
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=/usr/bin/lxsession-logout
Categories=GTK;System;Settings;
Type=Application

and put it in usr/share/applications. This made it appear in main menu under System Tools and could be added in lxpanel in an application launch bar.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.