Hi,
Does any one has model script that enables application manager to check an application is running or not?
It help me to develop a script to avoid uninstalling my application when it is running.
Regards
Rajini
Hi,
Does any one has model script that enables application manager to check an application is running or not?
It help me to develop a script to avoid uninstalling my application when it is running.
Regards
Rajini
It's hard to imagine use-case for such check, but you can use for example pidof utility, if you know process name
http://linux.die.net/man/8/pidof
Maemo application manager provides 'maemo-application-running' utility, this also checks the status of the application. But this is not working on my device. Its not displaying any result.
Regards
Rajini
http://wiki.maemo.org/Documentation/...d_Distributing
In the above link If see the following section
Packaging ---> Removing or Upgrading Running Applications
When uninstalling or upgrading a package named PACKAGE, the Application Manager runs the program named /var/lib/hildon-application-manager/info/PACKAGE.checkrm, if it exists. If this program exists with code 111, the operation is canceled.
do you have model PACKAGE.checkrm script file ?
Regards
Rajini
maemo-application-running seems to be buggy and probably unmaintained. Due the fact /var/lib/hildon-application-manager/info/ doesn't exist on N900 filesystem I guess checkrm it's also not maintained.
You can try, it's just an arbitrary shell script.