|
2013-03-22
, 21:19
|
Posts: 578 |
Thanked: 994 times |
Joined on Dec 2012
|
#2
|
|
2013-03-22
, 21:24
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#3
|
|
2013-03-22
, 21:41
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#4
|
user ALL = NOPASSWD: /path/to/script/scriptname
|
2013-03-22
, 21:55
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#5
|
|
2013-03-22
, 22:00
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#6
|
|
2013-03-22
, 22:26
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#7
|
sudo ln -s /opt/mytheme usr/share/themes
|
2013-03-22
, 22:54
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#8
|
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.
[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
|
2013-03-22
, 23:14
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#9
|
|
2013-03-22
, 23:23
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#10
|
Tags |
chmod, debian, permission, script, theme |
|
The theme require to modify some files inside /usr/share/themes/base/meegotouch. It modifies succesfully those file s when i add the script to the posinst file BUT now i want to modify that files by a desktop icon that run an SH script that run commands like /sbin/initctl restart xsession/mthome or symlink inside /usr/share/themes/base/meegotouch/libmeegotouchhome/style but these ones doesn't work.
I don't have permission? I tried chmod +x script.sh on the postinst but no luck
Maybe the script should be placed in other folder? (now is in /opt/theme)
Bigger Icons (MetroUI)
Charging Indicator
s60.com.ar
Last edited by flotron; 2013-03-22 at 21:08.