SOLVED - Logout Button On lxpanel  Topic is solved

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel

SOLVED - Logout Button On lxpanel

Postby mashcaster » Mon Nov 17, 2008 5:50 pm

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 11:42 am, edited 2 times in total.
mashcaster
 
Posts: 25
Joined: Thu Nov 13, 2008 10:14 am

Re: Logout Button On lxpanel  Topic is solved

Postby PCMan » Tue Nov 18, 2008 10:32 am

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)
PCMan
 
Posts: 85
Joined: Mon Oct 06, 2008 10:52 am

Re: Logout Button On lxpanel

Postby mashcaster » Tue Nov 18, 2008 11:37 am

How do I give lxde-logout a *.desktop file?
mashcaster
 
Posts: 25
Joined: Thu Nov 13, 2008 10:14 am

Re: Logout Button On lxpanel

Postby rockdoctor » Wed Nov 19, 2008 3:13 pm

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!
rockdoctor
 
Posts: 116
Joined: Tue Nov 11, 2008 5:51 pm

Re: Logout Button On lxpanel

Postby mashcaster » Thu Nov 27, 2008 11:41 am

Thanks that works!
mashcaster
 
Posts: 25
Joined: Thu Nov 13, 2008 10:14 am

Re: SOLVED - Logout Button On lxpanel

Postby Mark » Thu Nov 27, 2008 8:16 pm

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
Mark
 
Posts: 46
Joined: Mon Oct 27, 2008 11:16 am

Re: SOLVED - Logout Button On lxpanel

Postby johnraff » Tue Jan 06, 2009 4:58 pm

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

Re: SOLVED - Logout Button On lxpanel

Postby mikrobio » Fri Jul 01, 2011 6:38 pm

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


Return to LXPanel

Who is online

Users browsing this forum: No registered users and 0 guests