View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#27
Cool
Later I will update PDF with this instruction, I see it's explained better
Now when you will create aegis manifest file and package your app
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>
the EXEC line in .desktop file will look like this:
Code:
[Desktop Entry]
Type=Application
Name=My Theme
Exec=/opt/mytheme/changer/script.sh
Icon=/opt/mytheme/icon/icon.png
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
It's automatically will start your script as ROOT
 

The Following User Says Thank You to Schturman For This Useful Post: