Howto run jupiter script as superuser in lubuntu-rc.xml?

Posted by KamilKrzes on Ask Ubuntu See other posts from Ask Ubuntu or by KamilKrzes
Published on 2013-11-10T15:26:31Z Indexed on 2013/11/10 16:12 UTC
Read the original article Hit count: 223

Filed under:
|
|
|

I'm trying to bind to my asus eee hotkeys couple of jupiter functions to work as on Windows. The problem is that I have to run those as superuser. Under terminal scripts are working fine so I put in my ~/.config/openbox/lubuntu-rc.xml:

<keybind key="XF86Launch6">
<action name="Execute">
<command>sudo /usr/lib/jupiter/scripts/cpu-control</command>
</action>
</keybind>

Aaaaaand... It partially works.

Some of files to change with this script was changed and other no. Some of the changed one are locked so sudo probably working. I have no idea how to debug this cause I don't know where to find log of this.

I'm lil' bit ashamed but I don't know how exactly sudo works. I don't want to put my password every time to change cpu frequency or toggle touchpad so I don't want to use gksu or other sudo gui.

© Ask Ubuntu or respective owner

Related posts about lubuntu

Related posts about sudo