A shutdown desktop icon

Marko Vojinovic vvmarko at gmail.com
Wed Aug 1 21:30:19 UTC 2012


Hi folks! :-)

I need to create a "shutdown" icon/button on the desktop. The user who is 
supposed to use it is too clumsy/visually impaired to use the "Leave" option 
in the menus, while clicking on the big red shutdown button at the middle of 
the desktop would do the job.

I have tried to create a shortcut which executes "shutdown -h now", but that 
doesn't work, since it requires root password.

I have tried right-clicking on the shutdown option in the menu, with the aim 
of using the "add to desktop" feature, but that also doesn't work --- clicking 
on it with either left or right mouse button produces the same effect (the 
shutdown gets started). There is no context menu for it.

I'm out of ideas.

The locally logged-in user doesn't (and shouldn't) need root password to 
shutdown the machine, and indeed the shutdown option in the menu doesn't ask 
for one. How do I get that executed from a desktop icon/shortcut/whatever?

Also, that desktop icon should not ask for a confirmation or a 30-second 
countdown, but should just start the shutdown process immediately, if 
possible.

What would be the most proper, KDE-way to do create this?

TIA, :-)
Marko




More information about the kde mailing list