SOLVED - Logout Button On lxpanel

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Locked
mashcaster
Posts: 25
Joined: Thu Nov 13, 2008 9:14 am

SOLVED - Logout Button On lxpanel

Post 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?
Last edited by mashcaster on Thu Nov 27, 2008 10:42 am, edited 2 times in total.
PCMan
Posts: 85
Joined: Mon Oct 06, 2008 9:52 am

Re: Logout Button On lxpanel

Post 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)
mashcaster
Posts: 25
Joined: Thu Nov 13, 2008 9:14 am

Re: Logout Button On lxpanel

Post by mashcaster »

How do I give lxde-logout a *.desktop file?
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: Logout Button On lxpanel

Post 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
Geology - It's not rocket science, it's rock science!
mashcaster
Posts: 25
Joined: Thu Nov 13, 2008 9:14 am

Re: Logout Button On lxpanel

Post by mashcaster »

Thanks that works!
Mark
Posts: 46
Joined: Mon Oct 27, 2008 10:16 am

Re: SOLVED - Logout Button On lxpanel

Post 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
johnraff
Posts: 3
Joined: Tue Jan 06, 2009 3:52 pm

Re: SOLVED - Logout Button On lxpanel

Post 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.
mikrobio
Posts: 1
Joined: Fri Jul 01, 2011 5:35 pm

Re: SOLVED - Logout Button On lxpanel

Post 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.
Locked