Page 1 of 1

SOLVED - Logout Button On lxpanel

Posted: Mon Nov 17, 2008 4:50 pm
by mashcaster
Is it possible to place a logout button on the panel? Is so, please could you let me know how to do this?

Re: Logout Button On lxpanel

Posted: Tue Nov 18, 2008 9:32 am
by PCMan
1.Add another application launcher to the panel.
2.Add a app button pointing to your logout command, such as lxde-logout. (needs a *.desktop file)

Re: Logout Button On lxpanel

Posted: Tue Nov 18, 2008 10:37 am
by mashcaster
How do I give lxde-logout a *.desktop file?

Re: Logout Button On lxpanel

Posted: Wed Nov 19, 2008 2:13 pm
by rockdoctor
mashcaster wrote:How do I give lxde-logout a *.desktop file?
You create the file /usr/share/applications/logout.desktop
Here's mine:

Code: Select all

[Desktop Entry]
Name=Logout
Comment=Get me out of here
Exec=/usr/bin/lxsession-logout
Icon=/usr/share/icons/Human/48x48/apps/gnome-session-logout.png
Terminal=false
Type=Application
Categories=System;
StartupNotify=false
NoDisplay=false

Re: Logout Button On lxpanel

Posted: Thu Nov 27, 2008 10:41 am
by mashcaster
Thanks that works!

Re: SOLVED - Logout Button On lxpanel

Posted: Thu Nov 27, 2008 7:16 pm
by Mark
Alternatively
[Desktop Entry]
Encoding=UTF-8
Name=Log Out
Comment=Shutdown, reboot or change session
Icon=stock_exit
Exec=lxsession-logout
Terminal=false
Type=Application

Re: SOLVED - Logout Button On lxpanel

Posted: Tue Jan 06, 2009 3:58 pm
by johnraff
I've been putting .desktop files for panel launchers in my own ~/.local/share/applications folder instead of /usr/share/applications . You don't have to use root powers, and it seems to work OK as long as you browse to that folder when making the panel button.

Re: SOLVED - Logout Button On lxpanel

Posted: Fri Jul 01, 2011 5:38 pm
by mikrobio
Thanks a lot this worked me too. Panel needed a little tweaks to get it the way i wanted.
By the way, i used this cause the path to the icon didnt work for me.

Icon=gnome-logout

Using Linux Mint LXDE 11 rc.