Reply
Thread Tools
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#11
Originally Posted by F2thaK View Post
http://www.multiupload.com/IG0AYVAM21
It was in a windows format..

Also I don't think the "<" and ">" is needed.

just remove the .txt ending from the attached file.
Attached Files
File Type: txt applytheme.sh.txt (114 Bytes, 96 views)
 

The Following 2 Users Say Thank You to Saturn For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#12
Originally Posted by Saturn View Post
It was in a windows format..

Also I don't think the "<" and ">" is needed.

just remove the .txt ending from the attached file.
It seems to work when run as root. Thanks. I made my script using WinSCP, I thought it wasnt windoze format.
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#13
Originally Posted by Saturn View Post
It was in a windows format..

Also I don't think the "<" and ">" is needed.

just remove the .txt ending from the attached file.

Thanks heaps, this works!
 
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#14
thank you saturn, your script helped me

#!/bin/sh

gconftool -s --type=string /meegotouch/theme/name nameoftheme
/sbin/initctl restart xsession/mthome
exit 0

i packaged succesfully that script on a deb file, but how i can switch to blanco automatically when uninstalling the theme? (obviously making a script with "blanco" name) but with the script inside "prerm"(inside DEBIAN folder)?

And how i can delete the restart from the script?? removing "/sbin/initctl restart xsession/mthome"??

Last edited by flotron; 2012-09-26 at 18:31.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#15
Yes you put it into prerm for it to change to blanco...
 

The Following User Says Thank You to thedead1440 For This Useful Post:
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#16
Originally Posted by thedead1440 View Post
Yes you put it into prerm for it to change to blanco...
And how i can delete the restart from the script?? removing "/sbin/initctl restart xsession/mthome"??

Because the restart could freeze the uninstall?

and what about "exit 0"?

Last edited by flotron; 2012-09-26 at 18:35.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#17
yup remove the /sbin line and exit0 too...

Just take note that postint and prerm scripts need to be signed with sha1sum codes into disigsums file...
 
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#18
Originally Posted by thedead1440 View Post
yup remove the /sbin line and exit0 too...

Just take note that postint and prerm scripts need to be signed with sha1sum codes into disigsums file...
Do you know how to sign it?
or point me the tutorial because i couldn't find nothing on the web

Last edited by flotron; 2012-09-26 at 18:49.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#19
its basically the sha1sum file so just take Vesuri's example theme from the theme settings page; unpack and use the same file with replacement of the sha1sum values and it should be done
 

The Following User Says Thank You to thedead1440 For This Useful Post:
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#20
Awesome! now working with vesuri's prerm
Thank you Dead!
 

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


 
Forum Jump


All times are GMT. The time now is 22:03.