You are not logged in.

#1 2009-04-05 16:49:57

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

[SOLVED] Shutdown/Reboot in compiz-deskmenu not working

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

#2 2009-04-06 19:53:03

Morra
Member
Registered: 2008-05-16
Posts: 39

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

SomeGuyDude wrote:

gksudo 'shutdown -r now'

Could it be a problem with those single quotes? Have you tried with double quotes or without any quotes?

Offline

#3 2009-04-07 00:02:37

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

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

#4 2009-04-07 00:46:58

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

SomeGuyDude wrote:

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

#5 2009-04-07 01:49:14

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

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

#6 2009-04-07 03:57:47

nickoljt
Member
Registered: 2008-09-17
Posts: 9

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

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

#7 2009-04-07 12:43:17

Morra
Member
Registered: 2008-05-16
Posts: 39

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

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

#8 2009-04-07 18:51:29

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [SOLVED] Shutdown/Reboot in compiz-deskmenu not working

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

Board footer

Powered by FluxBB