Frontend base code
Base frontend class.
This class implements optional methods as described by the interface. Inheriting from this class makes sure the implementation of the frontend interface is valid, even though you do not need some optional methods.
Parameter: | uses_privileged_funcs – Boolean that defines whether the frontend uses privileged functions (list updating, commit) or not. |
---|
Handles an uncaught exception.
Parameter: | exception – Exception instance |
---|
Handling of update-manager being invoked by unprivileged (= non-root) user.
This method should fork out and launch a new update-manager instance as privileged user.
For the Gtk frontend, for example, this means invoking the program via gksu.
Parameter: | app_args – Command line arguments. |
---|
Initialize and show the frontend, called by Application when everything else is ready.
You should not implement your application’s main loop in here, but rather in main().
Gettext initialization stub.
This stub does not do anything and may be overridden to provide per-frontend gettext initialization.
Returns whether this frontend uses privileged functions (list updating, committing).
The return value of this method can be set via the uses_privileged_funcs keyword argument of the __init__() method.
If this method returns False root privileges will not be obtained, even though the backend would requires those.