View Single Post
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#8
Originally Posted by peterleinchen View Post
You need to put a file "myApp.sudoers" into /etc/sudoers.d/
with a content like
and call in postinst 'update-sudoers'.
Then you may call the script with sudo without requiring a password.
not working

I tried to add sudo in the desktop icon too but nothing..

Code:
[Desktop Entry]
Type=Application
Name=My Theme
Exec=sudo /opt/mytheme/changer/script.sh
Icon=/opt/mytheme/icon/icon.png
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

Last edited by flotron; 2013-03-22 at 22:59.