×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    19

    Model Script to avoid uninstalling an application while its running

    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

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Model Script to avoid uninstalling an application while its running

    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

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    19

    Re: Model Script to avoid uninstalling an application while its running

    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

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    19

    Re: Model Script to avoid uninstalling an application while its running

    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

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Model Script to avoid uninstalling an application while its running

    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.

Similar Threads

  1. Problem in uninstalling application running in background
    By amar_wagholikar in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 6
    Last Post: 2009-12-25, 07:50
  2. Replies: 2
    Last Post: 2007-11-26, 10:45
  3. error -2 while running a script
    By luke14free in forum Symbian
    Replies: 2
    Last Post: 2007-04-12, 15:16
  4. Uninstalling a running application results in an error
    By Il_Maestro in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-07-13, 09:14
  5. Prevent uninstalling running application
    By anioak in forum Symbian
    Replies: 0
    Last Post: 2003-12-06, 05:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×