Package zeroinstall :: Package injector :: Module background
[frames] | no frames]

Module background

source code

Check for updates in a background process. If we can start a program immediately, but some of our information is rather old (longer that the policy.Policy.freshness threshold) then we run it anyway, and check for updates using a new process that runs quietly in the background.

This avoids the need to annoy people with a 'checking for updates' box when they're trying to run things.

Classes
  BackgroundHandler
A Handler for non-interactive background updates.
Functions
 
spawn_background_update(policy, verbose)
Spawn a detached child process to check for updates.
source code
Function Details

spawn_background_update(policy, verbose)

source code 

Spawn a detached child process to check for updates.

Parameters:
  • policy (policy.Policy) - policy containing interfaces to update
  • verbose (bool) - whether to notify the user about minor events