Linux Lite Forums

Software - Support => Installing Software => Topic started by: Tony Gamble on October 17, 2014, 01:24:56 AM

Title: [SOLVED] Want Shutdown Icon on Desktop
Post by: Tony Gamble on October 17, 2014, 01:24:56 AM
I'm setting up a Sony Vaio with Linux Lite for my wife.

The shutdown icon on the menu, and the new one on the taskbar, are both small and hidden.

I have two icons on the desktop - browser and email.

I'd like a third - to turn the laptop off.

What do you wizards suggest, please?

Tony
Title: Re: Want Shutdown Icon on desktop
Post by: Scott on October 17, 2014, 02:08:31 AM
Hi Tony,

Give this a try:

Create a launcher on the desktop
1. RT click the desktop > Create Launcher
2. Create Launcher window opens
3. Name field: start typing the word "Turn" and you should be offered the choice of "Turn Off Computer." Accept this and all necessary info will autofill.
4. Click the create button.
5. A new icon is now on the desktop.
6. Rt click the new icon > Properties
7. Icon properties window opens
8. Choose the Permissions Tab
9. Tick box - Allow this file to run as a program
10. Close button
11. Double click new icon to test
12. The end

Did that do it?

~Scott
Title: Re: Want Shutdown Icon on desktop
Post by: N4RPS on October 17, 2014, 02:26:51 AM
Hello!

As they say, great minds think alike; Scott and I answered at the same time. His answer is better, so here it is, in pictures:

         (http://www.zimagez.com/miniature/screenshot-10172014-025055am.php) (http://www.zimagez.com/zimage/screenshot-10172014-025055am.php)            (http://www.zimagez.com/miniature/screenshot-10172014-023600am.php) (http://www.zimagez.com/zimage/screenshot-10172014-023600am.php)            (http://www.zimagez.com/miniature/screenshot-10172014-024223am.php) (http://www.zimagez.com/zimage/screenshot-10172014-024223am.php)            (http://www.zimagez.com/miniature/screenshot-10172014-024905am.php) (http://www.zimagez.com/zimage/screenshot-10172014-024905am.php)

Hope this helps...

73 DE N4RPS
Rob


Title: Re: Want Shutdown Icon on desktop
Post by: Tony Gamble on October 17, 2014, 03:54:26 AM
Thanks guys.

It works a treat.

Tony
Title: Re: Want Shutdown Icon on desktop
Post by: JmaCWQ on October 17, 2014, 07:24:31 AM
Hey All,

Another way:

Click on Menu, scroll to All, scroll to Turn Off Computer, right click on Turn Off Computer - Add to Desktop.

Cheers
Title: Re: Want Shutdown Icon on desktop
Post by: Tony Gamble on October 17, 2014, 08:51:55 AM
Thanks again.

Tony
Title: Re: Want Shutdown Icon on desktop
Post by: Scott on October 17, 2014, 10:43:23 AM
@N4RPS
Great pics! I was too lazy to post them myself.

@Tony
Thanks for taking the time to post. Glad you were able to fix the issue.  :)

@JmaCWQ
100 points for you. Great solution. Can't get easier than that.
Title: Re: Want Shutdown Icon on desktop
Post by: PeterB on February 25, 2015, 10:13:19 AM
Apologies for reawakening an old thread, but I can't find a more recent mention of this topic.

Neither of the 2 suggested solutions seems to work with version 2.2.

In 'Create Launcher', the 'turn off' option isn't listed.
In the 'Menu, All' suggestion, there isn't a 'Turn off Computer' option to right-click.

Is there still a way to achieve this, please?
Title: Re: Want Shutdown Icon on Desktop
Post by: avj on February 25, 2015, 11:13:28 AM
I just tested the method in the reply about creating a desktop launcher, and it seems to work. Once the launcher is created right click on it and click "make file executable", and it should then work.

When you try to create the launcher only type in the word "turn" and a drop down list should appear with the "Turn off computer" as one of the items that can be selected.
Title: Re: Want Shutdown Icon on Desktop
Post by: PeterB on February 25, 2015, 03:22:59 PM
Hi avj...I finally sorted it out after a little blundering around - on my installation, it's the word 'log' not 'turn' that does it.
Title: Re: Want Shutdown Icon on Desktop
Post by: avj on February 25, 2015, 03:27:05 PM
Glad you found a solution that worked for you.  :)
Title: Re: Want Shutdown Icon on Desktop
Post by: TMG1961 on February 25, 2015, 04:43:09 PM
i just click the power button on laptop to turn it off
Title: Re: Want Shutdown Icon on Desktop
Post by: avj on February 25, 2015, 05:14:18 PM
@TMG1961

Using the power switch to power down the system, is a matter of personal preference. In my opinion using the power switch for this puts twice the wear and tear on the power switch as is normally necessary. However on your hardware it's your call. :)
Title: Re: [SOLVED] Want Shutdown Icon on Desktop
Post by: ukbrian on February 26, 2015, 03:54:53 AM
On Debian stable I have a .desktop launcher
Code: [Select]
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Shut Down
Comment=Shut off this machine
Categories=System;
Exec=sudo halt
Icon=/home/ducky/icons/96/shutdown.png
Terminal=false
StartupNotify=true
I've also added a file to /etc/sudoers.d, (thank you AustenTexas)
Code: [Select]
user     ALL=NOPASSWD: /usr/sbin/gparted
user     ALL=NOPASSWD: /usr/sbin/synaptic
user   ALL=NOPASSWD: /usr/bin/thunar
user ALL=(ALL) NOPASSWD: ALL

I could click on the 26x26 pixel icons at the bottom of my panel below the whisker icon but I find it a tad easier to click on a 96x96 pixel icon on my ducky screenform.

(http://i.imgur.com/FrrgJlcm.png)

Unfortunately the shutdown button don't work correctly with the Ubuntu 14.04 based distros because of systemd but I would think it just needs a change to
Code: [Select]
Exec=sudo halt
My database guru friend who wrote my office app in the 90's  is bored with his work maintaining 20 YO legacy windows code for local authorities and has expressed an interest in doing a html5 desktop based on debian like deepin have done for Ubuntu but the database should also be able to churn out a new desktop for windows, so something I've been thinking around since the late 90's looks like taking shape, not bad progress for a none coder.

@avj
My reboot and halt buttons still don't look the same to me the halt has a more "glassy" look to my old eyes.

Title: Re: [SOLVED] Want Shutdown Icon on Desktop
Post by: phylo on January 07, 2018, 12:37:31 AM
The above solutions do not appear to work on Linux Light 3.6 -> for desktop shutdown shortcut (launcher).

Typing - turn - results in [blank].
Typing - tur - results in -> Create Launcher a) Picture b) System c) System d) VLC me....
typing - log - is not a direct shutdown but a number of log options which includes shutdown.

The below is working on my 3.6 install.

1a.  Open a Terminal and enter the following command:

sudo chmod u+s /sbin/shutdown

You will be prompted for your root password. After that, you're done and can type "exit" to exit out of the Terminal.

1b.  Next, on your Desktop, right-click on empty space somewhere and select Create a Launcher.... For the Command:, enter the following:

shutdown -Ph now

1c. Fill remaining fields as required and select an icon.

2a. For reboot launcher fill Command:

shutdown -r now

2b. Fill remaining fields as required and select an icon.

I could not find the metallic power off and reboot icons and used a cross and apposing arrows from Emblems icon selection:

KB shortcuts can be found here: https://askubuntu.com/questions/53263/shut-down-computer-from-keyboard (https://askubuntu.com/questions/53263/shut-down-computer-from-keyboard)

Comment: typing - power - automatically fills in a power management launcher. typing - lib - presents various options for Libra Office. Typing - fil - presents various option.

To admin: Where would be found a list of automatic launcher fills ?