PDA

View Full Version : shutdown launcher



trav9595
December 25th, 2014, 06:19 PM
This is the code for a shutdown launcher when I view it in gedit
...why does it not work??

[Desktop Entry]
Version=1.0
Type=Application
Name=OFF
Comment=
Exec=shutdown -p now
Icon=xfsm-shutdown
Path=
Terminal=false
StartupNotify=false

schragge
December 25th, 2014, 07:16 PM
You need to be root/sudo to be able to execute shutdown. Besides, it's the captial P:

shutdown -P now

trav9595
December 25th, 2014, 08:17 PM
I got it to work with Ph instead of p
big improvement over the stock shutdown