Active Topics

 


Reply
Thread Tools
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#1
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:

The system does not close the application running on the background when the user uninstalls the application. If the application needs to handle these situations gracefully a preremove/postremove script needs to be used. <more information later>
Gotta love the <more information later> part.

Anyone has solved the issue?

EDIT : FYI, I followed the instructions found here :
http://meegoharmattandev.blogspot.fi...ackground.html
for the prerm / postinstall scripts.
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com

Last edited by tortoisedoc; 2013-05-11 at 21:52.
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#2
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.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#3
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?
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com

Last edited by tortoisedoc; 2013-05-11 at 23:05.
 
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#4
*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??
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#5
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.
__________________
My N9/N950 projects:
 
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#6
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!
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com
 
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#7
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.
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#8
What problem are you trying to solve by doing prestart? You can just kill the ui part from the script too.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 
Posts: 592 | Thanked: 1,167 times | Joined on Jul 2012
#9
Originally Posted by rainisto View Post
What problem are you trying to solve by doing prestart? You can just kill the ui part from the script too.
I want my app to start on boot (preferably with the prestarted apps and before the user can interact with the homeview); of course there is upstart, but upstart is started after the -prestart's (which is not really optimal, as it makes my ui not available straight away); so I was keeping it as a (very not wanted) backup solution; and whilst testing it prevently, I encountered the problem during the deinstallation mentioned above.

Applifed would have been perfect solution, for the starting on boot (but once again meh nokia ), but for the uninstalling maybe things are different.
__________________
BWizz - best N9 bookmark editing tool! Check it out ->BWizz for Harmattan

LINKer - transform your N9's home view in a Desktop, give it the freedom it deserves! -> LINKer for Harmattan

QuickBar - Can't find the app you used yesterday in your overcrowded Home Screen? Want access to the QuickLaunch bar even in the home screen? QuickBar for Harmattan

If you like our work, and would like to support via PayPal : users.giulietta@gmail.com

Last edited by tortoisedoc; 2013-05-16 at 09:16.
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#10
Originally Posted by tortoisedoc View Post
I want my app to start on boot (preferably with the prestarted apps and before the user can interact with the homeview); of course there is upstart, but upstart is started after the -prestart's (which is not really optimal, as it makes my ui not available straight away); so I was keeping it as a (very not wanted) backup solution; and whilst testing it prevently, I encountered the problem during the deinstallation mentioned above.

Applifed would have been perfect solution, for the starting on boot (but once again meh nokia ), but for the uninstalling maybe things are different.
You could probably do it in open mode or using inception, but then no-dice getting the application to Nokia Store.

Apart from that, using Upstart is AFAIK the only possibility.
__________________
My N9/N950 projects:
 
Reply


 
Forum Jump


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