[packagekit] how to wake up packagekit after idle time

tomw tomw at ubilix.com
Thu Jul 26 11:03:50 PDT 2012


Thanks, that sounds like there is no way around using libpackagekit then
(or the respective GI bindings). I assume using a pure DBus approach on
System Bus would not work either, unless you leave packagekitd running
with the --disable-timer option, right?
 

On Do, 2012-07-26 at 19:18 +0200, Matthias Klumpp wrote:
> Then connecting to the session bus will never work... Instead, you
> want PkTask from PackageKit's GObject-repository:
> 
> from gi.repository import PackageKitGlib as packagekit
> 
> pktask = packagekit.Task()
> pktask.set_locale(make_locale_string())
> 
> res = pktask.install_packages(...)
> 
> You'll also need to display progress and connect error callbacks
> (depending if you use th sync interface or not)
> Cheers,
>    Matthias





More information about the PackageKit mailing list