View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#6
Originally Posted by Tiboric View Post
Thanks MAG,
would you also know a better way of getting permisions to write the .desktop file to /usr/share/applications/hildon/ ?
at the moment I'm using
Code:
Exec=osso-xterm 'sudo run-standalone.sh python2.5 /opt/shortcutmkr/main.py'
in my own .desktop file to get around it.
You don't need osso-xterm, also, by adding #!/usr/bin/python2.5 to the top of the main.py file and doing a chmod +x /opt/shortcutmkr/main.py in postinst, you can reduce this to sudo run-standalone.sh /opt/shortcutmkr/main.py.

BTW, shouldn't you be using run-standalone.sh sudo /opt/shortcutmkr/main.py, so it'd only require a sudoers entry for that file and not the run-standalone.sh script?
 

The Following 3 Users Say Thank You to MohammadAG For This Useful Post: