<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div>>Right, You currently get the RestartRequired method with the type of<br>>restart on the Transaction interface:<br>><br><a href="http://www.packagekit.org/gtk-doc/Transaction.html#Transaction::RequireRestart" target="_blank">>http://www.packagekit.org/gtk-doc/Transaction.html#Transaction::RequireRestart</a><br>><br>>As you're on the Transaction interface, you'll have the DBUS path (the<br>>transaction_id) and then you can call GetRole() on that path. This gives<br>>you the sort of action (e.g. UpdateSystem, RemovePackages) that you can<br>>put in any UI. That should do what you need.</div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><br>Yes, i know this way i could get the role, but i'm not willing to
track<br>all the transactions, (ie the systray icon just show them(i don't connect any of<br>it's signals), if some of them emit requireRestart and the transaction is <br>not on a ui, then i will not be aware of it).<br><br>I only track the daemon(pkcontrol), transactions list changed, and poke the <br>systray program, so i could receive just the role in the daemon would be enough.<br><br>I can give more details, if you like.<br><br>Thanks,<br>Daniel.<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Mensagem original ----<br>De: Richard Hughes <hughsient@gmail.com><br>Para: PackageKit users and developers list <packagekit@lists.freedesktop.org><br>Enviadas: Sábado, 23 de Agosto de 2008 8:16:17<br>Assunto: Re: [packagekit] restart-schedule<br><br>On Fri, 2008-08-22 at 19:31 -0700, <a ymailto="mailto:dantti85-pk@yahoo.com.br" href="mailto:dantti85-pk@yahoo.com.br">dantti85-pk@yahoo.com.br</a> wrote:<br>>
Hello again,<br>> <br>> i'm finishing the notify and smart icon stuff,<br>> but i need a feature on packagekit :) i need to<br>> have the restart-schedule signal to emit the reason<br>> why we need to restart, like a package update<br>> caused the restart, or a system update or maybe<br>> a remove package... <br>> i need this cause i don't have a running application<br>> connected to all the transactions i have only<br>> a kded plugin that holds the daemon pk class,<br>> and when it receives transactionListChanged,<br>> is starts the kpackagekit executable with <br>> --smart-icon, so this requires only 1~2Mb of<br>> extra ram on kde.<br>> if this signal can be emmited by the daemon<br>> with only the role that causes it<br>> i call kpackagekit with --restart role<br><br>Right, You currently get the RestartRequired method with the type of<br>restart on the Transaction interface:<br><br><a
href="http://www.packagekit.org/gtk-doc/Transaction.html#Transaction::RequireRestart" target="_blank">http://www.packagekit.org/gtk-doc/Transaction.html#Transaction::RequireRestart</a><br><br>As you're on the Transaction interface, you'll have the DBUS path (the<br>transaction_id) and then you can call GetRole() on that path. This gives<br>you the sort of action (e.g. UpdateSystem, RemovePackages) that you can<br>put in any UI. That should do what you need.<br><br>Richard.<br><br><br><br>_______________________________________________<br>PackageKit mailing list<br><a ymailto="mailto:PackageKit@lists.freedesktop.org" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/packagekit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/packagekit</a><br></div></div></div><br>
<hr size=1>Novos endereços, o Yahoo! que você conhece. <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses">Crie um email novo</a> com a sua cara @ymail.com ou @rocketmail.com.</body></html>