View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#14
OK, you can do it like this..
1. Before packaging you need your_package.aegis file that include this:
Code:
<aegis>
    <request policy="add">
    <credential name="UID::root" />
    <credential name="GID::root" />
    <credential name="GRP::root" />

    <for path="/opt/mytheme/changer/script.sh" />
    </request>
</aegis>
2. The .desktop file should look like this:
Code:
[Desktop Entry]
Type=Application
Name=My Theme
Exec=/usr/bin/aegis-exec -s -u user -l "/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 Schturman; 2013-03-22 at 23:55.
 

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