[packagekit] Res: Res: restart-schedule

dantti85-pk at yahoo.com.br dantti85-pk at yahoo.com.br
Sat Aug 23 19:52:45 PDT 2008


Richard sorry :P

but i didn't understood that:

>The trick is setting the tid on a "blank" TID. You might need to add
>some API for that new trick :-)

you said blank:

>pk_client_set_tid (client, "/this_tid65");

ok, but from where do you get this tid? is it valid?
i mean if i receive the restart signal i don't have a tid
so i can't get the role.

btw did you saw the accept eula email?

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 18:52:54
Assunto: Re: [packagekit] Res:  restart-schedule

On Sat, 2008-08-23 at 13:13 -0700, dantti85-pk at yahoo.com.br wrote:
> 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.

You really don't need to track the transactions. You just need a one
shot method, just like I'm can do with:

PkClient *client;
PkRoleEnum role;
client = pk_client_new ();
pk_client_set_tid (client, "/this_tid65");
pk_client_get_role (client, &role, NULL);
g_object_unref (client);

The trick is setting the tid on a "blank" TID. You might need to add
some API for that new trick :-)

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/a79e7d4a/attachment-0003.htm>


More information about the PackageKit mailing list