[packagekit] restart-schedule

Richard Hughes hughsient at gmail.com
Sat Aug 23 04:16:17 PDT 2008

On Fri, 2008-08-22 at 19:31 -0700, dantti85-pk at yahoo.com.br wrote:
> Hello again,
> i'm finishing the notify and smart icon stuff,
> but i need a feature on packagekit :) i need to
> have the restart-schedule signal to emit the reason
> why we need to restart, like a package update
> caused the restart, or a system update or maybe
> a remove package... 
> i need this cause i don't have a running application
> connected to all the transactions i have only
> a kded plugin that holds the daemon pk class,
> and when it receives transactionListChanged,
> is starts the kpackagekit executable with 
> --smart-icon, so this requires only 1~2Mb of
> extra ram on kde.
> if this signal can be emmited by the daemon
> with only the role that causes it
> i call kpackagekit with --restart role

Right, You currently get the RestartRequired method with the type of
restart on the Transaction interface:


As you're on the Transaction interface, you'll have the DBUS path (the
transaction_id) and then you can call GetRole() on that path. This gives
you the sort of action (e.g. UpdateSystem, RemovePackages) that you can
put in any UI. That should do what you need.


More information about the PackageKit mailing list