You are not logged in.
Hey guys, I can't seem to get my compiz-deskmenu to make my computer reboot/shutdown. I'm using the same entries that I do in my OB menu (where it works fine).
gksudo 'shutdown -r now'
gksudo 'shutdown -h now'
I get no response whatsoever from the deskmenu. I can't find a way to get it to spit an error message at me from the terminal, either. Any hints?
EDIT: I do have gksu installed.
Last edited by SomeGuyDude (2009-04-07 18:51:45)
And in the midst of such perfection,
I can't help but feel diseased.
Offline
gksudo 'shutdown -r now'
Could it be a problem with those single quotes? Have you tried with double quotes or without any quotes?
Offline
Tried both, yeah. There was an option in there initially, some command I replaced, but I can't recall what it was.
Last edited by SomeGuyDude (2009-04-07 00:02:49)
And in the midst of such perfection,
I can't help but feel diseased.
Offline
Tried both, yeah. There was an option in there initially, some command I replaced, but I can't recall what it was.
try "sudo shutdown -h now" and "sudo reboot" and add yourself to the wheel group.
Last edited by wankel (2009-04-07 00:47:43)
Offline
I'm in the wheel group, but wouldn't sudo commands require me to be in the terminal to punch in the password? That's why I'm using gksudo, it creates a popup.
And in the midst of such perfection,
I can't help but feel diseased.
Offline
try using a terminal in the desk-menu command instead of gksudo: urxvt -e sudo shutdown -h now
(or xterm -e sudo shutdown -h now)
Offline
gksudo some command -> Works fine.
gksudo shutdown -h now -> Nothing happens.
Workaround could be a script:
#!/bin/bash
gksudo 'shutdown -h now'
Then start the script from Compiz-menu.
Offline
D'oh! I'm an idiot. That's what I had been doing last time. Hence the saved commands from my compiz config file!
Thanks!
And in the midst of such perfection,
I can't help but feel diseased.
Offline