Re: GtkApplication and argc/arv
- From: Wen-Yen Chuang <caleb calno com>
- To: Havoc Pennington <hp pobox com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkApplication and argc/arv
- Date: Sat, 26 Feb 2011 10:13:58 +0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/26/11 03:28, Havoc Pennington wrote:
> (fwiw, g_bus_own_name() in gdbus could in theory make it considerably
> easier to handle bus restart, assuming gdbus itself handles it.)
>
> The reason apps don't handle it is because this is a very hard thing
> to handle and requires per-app work. You'd have the same problem with
> any stateful IPC protocol. (You can build stateless protocols on dbus
> if you like, that will have no issue.)
>
> Anyway, the upstream position, or at least my opinion, with respect to
> the system bus, is "restarting won't work in practice because you
> can't rely on apps handling it" rather than "apps should not handle
> it." If apps handle it that's great.
Thanks for the clarification.
I suppose GtkApplication users do not need to handle dbus directly.
So if GtkApplication can handle dbus restart / dbus crash, I may also
consider using GtkApplication for single instance app.
Kind regards
Wen-Yen Chuang (caleb)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk1oYeYACgkQdEpXpumNYVmZEgCeKGOxn1WFVaTz8EdK7Tu9l39u
RNsAoIoUcJJU+gXf745Hg8Jt7wMZ9yjl
=Y54p
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]