Reply
Thread Tools
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#11
the content of my script remove files from themes/base folders and it replace them with symlinks
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#12
Then it should work with hints given above ...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#13
but how to execute the script now, what i need to put before ?
sudo script.sh?
devel-su script.sh?
su script.sh?
#sudo script.sh?
 
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:
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#15
where is should be placed in the package? your_package.aegis

that would be "packagename.aegis"?
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#16
yes "packagename.aegis"

P.S. I don't know how you package your .deb file, but I use this method: http://talk.maemo.org/showthread.php?t=86291
By what I wrote before I removed password prompt from N9QT.

Last edited by Schturman; 2013-03-23 at 00:19.
 

The Following User Says Thank You to Schturman For This Useful Post:
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#17
but where it should be placed? inside the DEBIAN folder?
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#18
No, in: your_packagename/debian
full path:
Code:
/scratchbox/users/your_name/home/your_name/package_name/debian

Last edited by Schturman; 2013-03-23 at 00:28.
 

The Following User Says Thank You to Schturman For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#19
P.S. Also add to the "rules" file:
Code:
chmod 4755 debian/your_packagename/opt/mytheme/changer/script.sh
 

The Following User Says Thank You to Schturman For This Useful Post:
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#20
thank you schturman, but im kind confused because i dont understand so much of this
i only package the folder to deb and do you mean debian folder inside the package?
and the rules file must be inside debian folder too?
 
Reply

Tags
chmod, debian, permission, script, theme

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:00.