You are not logged in.

#1 2011-09-07 13:43:04

innn
Member
Registered: 2010-10-12
Posts: 96

shutdown icon on desktop not working in pcmanfm[SOLVED]

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

#2 2011-09-08 05:40:29

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: shutdown icon on desktop not working in pcmanfm[SOLVED]

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

#3 2011-09-08 14:31:07

innn
Member
Registered: 2010-10-12
Posts: 96

Re: shutdown icon on desktop not working in pcmanfm[SOLVED]

ok, solution was to create some bash script named whatever having this

#!/bin/bash
sudo /sbin/halt
exit 0

chmod +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

Board footer

Powered by FluxBB