View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#14
OK, after some tests I got it

You can add to icon:
Code:
Exec=sh -c "echo rootme | devel-su -c sh /path/to/script.sh"
or you can use it in your script:
Code:
echo rootme | devel-su -c <command>
and in the icon just:
Code:
Exec=sh /path/to/script.sh
rootme = your pass
 

The Following 4 Users Say Thank You to Schturman For This Useful Post: