![]() |
Re: Desktop Command Execution Widget scripts
Did anyone ever get as far as compiling a list of useful scripts? A wiki or the like?
|
Re: Desktop Command Execution Widget scripts
Quote:
'rootsh is now deprecated for it poses too much of a security risk. However, you can still obtain a root shell by running the commands root or sudo root.' What if I make a script file to perform the task in two steps (I.e. gain root, execute lirc start) and then have the widget run the script file? I'll try that. Thanks for the idea! |
Re: Desktop Command Execution Widget scripts
Is this something that might also work under Diablo?
|
Re: Desktop Command Execution Widget scripts
If by Diablo you mean Maemo 4.X, I have no idea. I am using Maemo 5.
|
Re: Desktop Command Execution Widget scripts
Quote:
Update: see Rob1n's post for a better way to do this using /etc/sudoers.d Just going right ahead and editing it can be extremely dangerous; messing up the file on a limited permissions system like the N900 can cause brickage. You probably want to add the command to the sudoers file and then have echo "" && sudo echo 2 > /sys/class/backlight/acx565akm/brightness as your DCE script. We begin with echo "" as DCEW doesn't like getting no output. |
Re: Desktop Command Execution Widget scripts
Apologies for the double post
Quote:
To get more you have to change n for both head and tail (i.e. for top three apps it's head -n 6 | tail -n 3, for top one is head -n 4 | tail -n 1). |
Re: Desktop Command Execution Widget scripts
Quote:
sudo echo 2 > /sys/class/backlight/acx565akm/brightness && echo "" || echo "Error!" In case everything was OK the output is empty, if there was any error, the output will be "Errror!". |
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
http://wiki.maemo.org/Desktop_Comman...Widget_scripts
You're welcome. :) It needs only to be put in appropriate categories and missing and/or new scripts must be added! |
All times are GMT. The time now is 15:33. |
vBulletin® Version 3.8.8