Peppermint OS Community Forum

Resources => User Submitted Tutorials => Topic started by: FocusPocus on June 26, 2016, 04:10:58 pm

Title: How to add log out button on desktop panel (P7).
Post by: FocusPocus on June 26, 2016, 04:10:58 pm
How to add log out button on desktop panel (manual for newbies).

(https://s32.postimg.org/u0zdi7ynp/Log_Out_Button.png)

Right mouse button click on free revenge of the panel.

Go to "Panel->Add New Items".

(https://s31.postimg.org/65852k2gb/Add_New_Items.png)

Click on "Launcher", then click "Add" button down.

(https://s32.postimg.org/bfjh2ggsl/Button.png)

It creates button in panel.

(https://s32.postimg.org/9w3z77r2d/Launcher.png)

Right mouse click on newly created button. Go to "Properties". Add a new empty item.

(https://s32.postimg.org/3nrbybp51/Launcher2.png)

Write in fields:
"Name" - "Logout".
"Command" - "peppermint-logout".

In field "Icon", choose your favorite icon for your button. I chosen "system-shutdown" icon. Then click button "Create".

Thats all! Have fun!

P.S. The same way, you can add other buttons.
Field "Command" <- "shutdown -r now"                     # for immediate reboot.
Field "Command" <- "poweroff"                                   # for immediate shutdown.
Field "Command" <- "lxsession switch-users"           # to switch users.
Field "Command" <- "xflock4"                                       # to lock screen.
Field "Command" <- "peppermint-settings-panel"   # for peppermint settings panel.
and etc...
Title: Re: How to add log out button on desktop panel.
Post by: PCNetSpec on June 26, 2016, 04:14:33 pm
Great tutorial .. thanks for that :)
Title: Re: How to add log out button on desktop panel (P7).
Post by: linuxuser2342 on June 26, 2016, 09:38:43 pm
Thank you for this. I used this to make restart and shutdown icons for my panel.
Title: Re: How to add log out button on desktop panel (P7).
Post by: spence on June 27, 2016, 01:14:54 am
How to add log out button on desktop panel (manual for newbies).

only difference for me was i needed to click "Create" not " Save"

In field "Icon", choose your favorite icon for your button. I chosen "system-shutdown" button. Then click button "Save".

otherwise, thanks... i dd sorta hunt for a while for the shutdown in the menu

Title: Re: How to add log out button on desktop panel (P7).
Post by: FocusPocus on June 27, 2016, 05:32:41 am
only difference for me was i needed to click "Create" not " Save"

Yep. A small mistake. Thanks for report. Fixed.  :D
Title: Re: How to add log out button on desktop panel (P7).
Post by: Tea on June 28, 2016, 02:57:20 pm
Thanks for that    :D I was just about to post that action buttons for the same are not working and the shut down button from Pep6 dosnt have the same file/folder structure http://forum.peppermintos.com/index.php/topic,2187.0.html
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 30, 2016, 09:12:13 am
That's great thanks, any idea how to create a launcher on the desktop it self ?
Title: Re: How to add log out button on desktop panel (P7).
Post by: Slim.Fatz on July 30, 2016, 09:57:33 am
That's great thanks, any idea how to create a launcher on the desktop it self ?

Hi Royaleagle,

Try using the method described here (https://forum.peppermintos.com/index.php/topic,1976.msg19246.html#msg19246) (yes, it is for Peppermint Six but AFAIK it still applies to Peppermint 7 -- I do not use desktop launchers so maybe some one else here with more knowledge will confirm this method; but try it out, it will not destroy anything  :) ).

Regards,

-- Slim
Title: Re: How to add log out button on desktop panel (P7).
Post by: PCNetSpec on July 30, 2016, 12:18:40 pm
That's great thanks, any idea how to create a launcher on the desktop it self ?

If it's in the menu, it can be added to the desktop by simply right-clicking the menu entry and electing "Add to desktop"

If it's something that isn't in the menu, let us know what it is you want on the desktop and we'll explain how to do it :)
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 31, 2016, 05:36:12 am
That's great thanks, any idea how to create a launcher on the desktop it self ?

If it's in the menu, it can be added to the desktop by simply right-clicking the menu entry and electing "Add to desktop"

If it's something that isn't in the menu, let us know what it is you want on the desktop and we'll explain how to do it :)

So the icon is not in the menu, it is palemoon, I was able to create a launcher for the bottom bar (don't know what is the correct name for it ...) but couldn't for my desktop.
Title: Re: How to add log out button on desktop panel (P7).
Post by: PCNetSpec on July 31, 2016, 05:45:11 am
How did you install Palemoon .. because it "should" show in the menu (I just tested it) :-\
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 31, 2016, 05:53:29 am
How did you install Palemoon .. because it "should" show in the menu (I just tested it) :-\

I'm going to reinstall palemoon ^^
I did it throw the terminal "apt install palemoon"
Title: Re: How to add log out button on desktop panel (P7).
Post by: PCNetSpec on July 31, 2016, 05:56:30 am
I simply downloaded the .deb from here:

64bit
http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_16.04/amd64/palemoon_26.3.3-1_amd64.deb

32bit
http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_16.04/i386/palemoon_26.3.3-1_i386.deb

and double-clicked it to install

I hate adding repositories that have more than I want included.
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 31, 2016, 06:00:24 am
I can't even uninstall palemoon now, the terminal doesn't find it  :-\
But if I type "palemoon" in the terminal it launches
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 31, 2016, 06:19:41 am
I followed your link and install it, I already had palemoon so I don't know how it will work but it seems to be all good.

Before the command of the launcher was "palemoon" now it is "palemoon %u"

If you know a lighter browser that has all the features and comptability to do pretty much everything I will be pleased.
Title: Re: How to add log out button on desktop panel (P7).
Post by: PCNetSpec on July 31, 2016, 06:37:29 am
Can't really help with the "light browser" question .. I just use Firefox for everything

But if you want to know what the "%u" field code is all about, see here
https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

the "%u" just tells the application that if something follows, such as
Code: [Select]
palemoon https://peppermintos.com
to treat it as a single URL
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 31, 2016, 08:33:15 am
no problem, I now have what I want so I'm happy  :)
Title: Re: How to add log out button on desktop panel (P7).
Post by: zebedeeboss on July 31, 2016, 08:43:43 am
no problem, I now have what I want so I'm happy  :)

Hi Royaleagle

Kindly go back to your first post and click modify and then append [SOLVED] to the subject line.

That way - anyone with a similar problem will know there is an answer here that might help

Regards and thanks Zeb...
Title: Re: How to add log out button on desktop panel (P7).
Post by: Royaleagle on July 31, 2016, 09:05:43 am
no problem, I now have what I want so I'm happy  :)

Hi Royaleagle

Kindly go back to your first post and click modify and then append [SOLVED] to the subject line.

That way - anyone with a similar problem will know there is an answer here that might help

Regards and thanks Zeb...

Sorry I'm a nooby haha. It's done now  ;)
Title: Re: How to add log out button on desktop panel (P7).
Post by: zebedeeboss on July 31, 2016, 09:30:35 am
no problem, I now have what I want so I'm happy  :)

Hi Royaleagle

Kindly go back to your first post and click modify and then append [SOLVED] to the subject line.

That way - anyone with a similar problem will know there is an answer here that might help

Regards and thanks Zeb...

Sorry I'm a nooby haha. It's done now  ;)

Hi  Just looking at the thread - its a tutorial - so was not needed in this instance - apologies - but its good practice for when you have your own thread  :)

and no apologies needed - we were ALL noobs in the beginning  :D

Regards Zeb...
Title: Re: How to add log out button on desktop panel (P7).
Post by: userxbw on March 17, 2018, 10:04:11 am
I do not know how old this post is, but now that it is the year 2018 and the older this post is just shows how lacking the people that developed this distro really care about there own distro because they still have not fixed this issue with it. It's rather sad to have to look up how do I log out of a desktop that is the default one the distros have installed for it. the user should not have to add a logout for the default deskop that comes with the distro. that is sad.
Title: Re: How to add log out button on desktop panel (P7).
Post by: PCNetSpec on March 17, 2018, 12:41:23 pm
Erm, nothing needs "fixing", there is and has always been a logout button exactly where most people (including Windows and OS X users) would expect to find it .. in the main menu (whiskermenu).

We have no intention of adding a logout button to the panel when there's a perfectly working one in the whiskermenu. Not everyone (specially a netbook user) has unlimited space on their panel for unnecessarily duplicated functionality with zero benefit.
 
If you want a logout button on the panel as well as the one in the whiskermenu, feel free to add one (instructions above) .. but we won't force one on those that don't want one.

Your argument:-

a) Would only make sense if we provided no logout button at all .. which we have always done.

b) Seems to suggest you think everyone wants one on the panel .. I do not.

c) Wastes panel space through duplication .. there's a logout button prominently displayed with a mouseover tooltip in the whiskermenu (top right by default).

d) Doesn't take into consideration that like most things, if we added a panel logout button for no good reason other people would comment who don't like it.

If you were having problems locating the logout button, instead of coming at us with ill-informed accusations, you could have just asked and we'd have been happy to assist ;)

(https://i.imgur.com/d4ODLux.png)