PDA

View Full Version : [ubuntu] shut down icon on Desktop



bu2971x
May 10th, 2009, 06:10 PM
how to put a shut down icon on the desktop( not the panel)??
thanks 9.04

cholericfun
May 10th, 2009, 06:14 PM
try right click and create launcher
type the command there:

gksudo shutdown -hP now

at least thats what i've seen "should" work
-didnt for me when i tried it out...

LoloftheRings
May 10th, 2009, 06:16 PM
I've been searching for this too, I figured this script, but it requires root privileges..



#!/bin/bash
echo yourpassword|sudo shutdown -hP now


There should be a better solution :p

LoloftheRings
May 10th, 2009, 06:23 PM
http://www.unix.com/linux/14373-non-root-shutdown.html

when reading comment 5, this command should allow you to shutdown without root privileges:
sudo chmod +s `which shutdown` `which reboot`

then, create an application launcher at the desktop, and enter the command:
shutdown -hP now

Hope this should do it :D

CatKiller
May 10th, 2009, 07:16 PM
Create a launcher. Call it whatever you want, and give it whatever icon you want. In the Command box, put
gnome-session-save --shutdown-dialog