maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Desktop Command Execution Widget scripts (https://talk.maemo.org/showthread.php?t=39177)

Jinux 2010-04-25 10:19

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by nokian-series (Post 626810)
Is there another way to execute that commands with 'root' ?! Or i'm doing anything wrong with that method of script.sh ?

Why not just put "sudo gainroot" at the top of the script before all the commands? No need to pipe it then...

x-lette 2010-04-25 10:38

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by Jinux (Post 626814)
Why not just put "sudo gainroot" at the top of the script before all the commands? No need to pipe it then...

Because it won't work. You need to execute the script itself as root. Putting sudo gainroot in first line will break the script.

x-lette 2010-04-25 10:41

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by nokian-series (Post 626528)
It dont have the result i've expected.
(if i do it from xterminal, line by line, it works ... )

OK, could you also tell us what it actually does and what you'd expect it to do?

What happens if you call the script from commandline? As user with the given pipe to sudo gainroot and as root by calling the script directly.

Is the script executable? Check it!

nokian-series 2010-04-25 19:14

Re: Desktop Command Execution Widget scripts
 
Ok, i got it..to many lines i think.
I've worked arround the problem, do what i want by different way..it works too..so..thank you all, that tip of script.sh was very good!

rooted 2010-05-03 05:38

Re: Desktop Command Execution Widget scripts
 
There is a bug in 1.1. When you tap the widget to refresh it changes color to blue to indicate a tap. It was working ok before, but now in 1.1 it stays blue in ca. 50% of the cases.

gilou3000 2010-05-13 15:57

Re: Desktop Command Execution Widget scripts
 
Hello

I just got in trouble: I install a 'Lock' widget with the 'Lock screen and keys' command. But forgot to disable the setting which activate it on current desktop.

So now I am stuck in a loop were the phone immediatly re-lock when I unlock it (using the slider stuff).

Any idea?

where are the setting file? I would like to remove the Lock widget by hand...

Any help appreciated

Gilles

gilou3000 2010-05-13 16:05

Re: Desktop Command Execution Widget scripts
 
ok, I manage to get rid of the problem by quickly unlocking the phone and going into widget setting and so on.

But I still would like to know were the widget definitions are.

And by the way this is a great soft...

Gilles


Quote:

Originally Posted by gilou3000 (Post 657023)
Hello

I just got in trouble: I install a 'Lock' widget with the 'Lock screen and keys' command. But forgot to disable the setting which activate it on current desktop.

So now I am stuck in a loop were the phone immediatly re-lock when I unlock it (using the slider stuff).

Any idea?

where are the setting file? I would like to remove the Lock widget by hand...

Any help appreciated

Gilles


twoboxen 2010-05-13 16:07

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by gilou3000 (Post 657023)
Hello

I just got in trouble: I install a 'Lock' widget with the 'Lock screen and keys' command. But forgot to disable the setting which activate it on current desktop.

So now I am stuck in a loop were the phone immediatly re-lock when I unlock it (using the slider stuff).

Any idea?

where are the setting file? I would like to remove the Lock widget by hand...

Any help appreciated

Gilles

ssh in, edit the config file to remove the offending widget. done.

EDIT:
the config file is /home/user/.desktop_cmd_exec

Unhuman 2010-05-19 15:33

Re: Desktop Command Execution Widget scripts
 
The set max cpu frequency doesn't seem to work for me? The command doesn't work from the terminal either. Isn't it out of date a bit? I have titan's kernel installed. Command seems to work in terminal only if I do sudo gainroot first and then insert the command (without "rootsh"). Is there a way to insert "sudo gainroot" in the script? I tried a couple of ideas,but everything failed miserably with a crash :X

rooted 2010-05-19 15:52

Re: Desktop Command Execution Widget scripts
 
Fixed. Please test and post feedback.


All times are GMT. The time now is 09:07.

vBulletin® Version 3.8.8