You are not logged in.
I am stating with pcmanfm -d --desktop & in .xinitrc all the other .desktop files work but the one for shutdown doesn't
here's the content of shutdown.desktop
[Desktop Entry]
Name=shutdown
Comment=shutdown system
Exec=sudo /sbin/halt
Icon=gnome-shutdown.png
Terminal=true
Type=Application
Encoding=UTF-8
Categories=System;any idea why it's not working?
ps: i have /sbin/halt allowed in visudo
if i try in xterm tu run that command it works.
Last edited by innn (2011-09-08 14:31:18)
Offline
Hello innn, if you have a solution, please post it and then mark the thread as solved. Thanks.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
ok, solution was to create some bash script named whatever having this
#!/bin/bash
sudo /sbin/halt
exit 0chmod +x whatever
and then in the shutdown.desktop file replacing the Exec line with path to this shell script
[Desktop Entry]
Name=shutdown
Comment=shutdown system
Exec=sh ~/.whatever
Icon=gnome-shutdown.png
Terminal=true
Type=Application
Encoding=UTF-8
Categories=System;Offline