![]() |
N9 Uninstall scripts
So, I have made this service app.
And I have my prerm / postinstall scripts working fine from Qt Creator. Butbut! When uninstalling the app from the device, it says "Application still running, cannot install" (or something similar). Now, looking a bit around got me to this : http://www.developer.nokia.com/Commu...ips_and_Tricks where they say that: Quote:
Anyone has solved the issue? EDIT : FYI, I followed the instructions found here : http://meegoharmattandev.blogspot.fi...ackground.html for the prerm / postinstall scripts. |
Re: N9 Uninstall scripts
Does your daemon run as root or user? Ie have you ensured that your kill command run as root if your daemon runs as root? That can be done with aegis manifest.
|
Re: N9 Uninstall scripts
This is my upstart .conf file command:
exec /usr/bin/aegis-exec -s -u user /opt/debota/lancia as devel-su, start/stop apps/debota_daemon works flawlessy. Also, installing not from QtCreator, but from .deb package via download works (as in, app is started after install thanks to postinst script as expected). But upon uninstall, it fails. It is as if the prerm script would not be there. How to check? |
Re: N9 Uninstall scripts
*BUMP*
an update; apparently, the process is killed no problem if assigned to "nobody". So problem seems to actually be linked to forcing the daemon into user / users via aegis (as instructed by the above link, same place where i got the postinst / prerm scripts from): <credential name="UID::user" /> <credential name="GID::users" /> Thought the package daemon runs as root?? |
Re: N9 Uninstall scripts
Are you sure you didn't have the application UI open (ie. the non-daemon part) when uninstalling?
That's when I have gotten that message. There's been no problem stopping the daemon part. Running as "nobody" is usually not a good idea, at least it caused me problems. But depending on what the daemon is doing, it may be harmless. Uninstalling applications runs as root. |
Re: N9 Uninstall scripts
Ooook!
So, yes, my daemon is actually an app (!) and yes, it has a window. So, daemon is no go. How about prestart / Applifed ? It seems the best alternative, but according to harmattan official docs /etc/prestart is *NOT* in the nokia QA path exception list - does this mean that making my app prestartable will invalidate it automagically for nokia store? Any help on this?? PLEASE! |
Re: N9 Uninstall scripts
Nevermind, found my info.
File is part of system integration, therefore cannot be modified. Unfortunately, this request was not even considered by Nokia so it seems the applifed daemon only relies on nokia.conf which is LAME. :( |
Re: N9 Uninstall scripts
What problem are you trying to solve by doing prestart? You can just kill the ui part from the script too.
|
Re: N9 Uninstall scripts
Quote:
Applifed would have been perfect solution, for the starting on boot (but once again meh nokia :(), but for the uninstalling maybe things are different. |
Re: N9 Uninstall scripts
Quote:
Apart from that, using Upstart is AFAIK the only possibility. |
Re: N9 Uninstall scripts
Quote:
But then again, better than letting if die of dust in some disk.. Edit : I assume providing a patched version of the aplifed to the store (as a free app) is not an option as well? |
Re: N9 Uninstall scripts
Why is your application so critical that it can not wait 2-3 minutes for it to start? Most people are not constantly rebooting their phone, I think.
|
Re: N9 Uninstall scripts
Ofcourse there is a way to inject yourself into prestarted list if you implement that in settings UI where you can choose what mode to start in and most likely you can even pass QA since in that way deb package is not using any unallowed paths.
BUT, unfortunately for you, I won't be telling how to, since /etc/init/apps is imho enough for normal apps. |
Re: N9 Uninstall scripts
Quote:
But the fact that it is not available from minute 0 defies the purpouse of the app... Just pushing hard to get my vision through here, nothing else really :). Quote:
Would you PM it to me tho? ;) EDIT : Just a side note, I am not trying to say that UpStart is not good; on the contrary, upstart would be great as well if it could get my app up as soon as the homeview is on. I am forced to find other solutions, in order to get the app to run as expected, as UpStart does not seem to just be the solution I am looking for. |
All times are GMT. The time now is 21:11. |
vBulletin® Version 3.8.8