Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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]
Comment=Shutdown or Reboot

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

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

2 Answers 2

I opened the config file:

gnome-open ~/.config/lxpanel/Lubuntu/panels/panel

and added these lines at the end:

Plugin {
    type = launchbar
    Config {
      Button {

This added the logout menu to the lxpanel.

share|improve this 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]
Comment=Shutdown or Reboot

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

Your Answer


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.