[packagekit] Res: restart-schedule

dantti85-pk at yahoo.com.br dantti85-pk at yahoo.com.br
Sat Aug 23 13:13:30 PDT 2008


>Right, You currently get the RestartRequired method with the type of
>restart on the Transaction interface:
>
>http://www.packagekit.org/gtk-doc/Transaction.html#Transaction::RequireRestart
>
>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.

Yes, i know this way i could get the role, but i'm not willing to track
all the transactions, (ie the systray icon just show them(i don't connect any of
it's signals), if some of them emit requireRestart and the transaction is 
not on a ui, then i will not be aware of it).

I only track the daemon(pkcontrol), transactions list changed, and poke the 
systray program, so i could receive just the role in the daemon would be enough.

I can give more details, if you like.

Thanks,
Daniel.


----- Mensagem original ----
De: Richard Hughes <hughsient at gmail.com>
Para: PackageKit users and developers list <packagekit at lists.freedesktop.org>
Enviadas: Sábado, 23 de Agosto de 2008 8:16:17
Assunto: Re: [packagekit] restart-schedule

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:

http://www.packagekit.org/gtk-doc/Transaction.html#Transaction::RequireRestart

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.

Richard.



_______________________________________________
PackageKit mailing list
PackageKit at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit



      Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080823/1f0f2c4b/attachment-0002.htm>


More information about the PackageKit mailing list