Re: GtkApplication and argc/arv

On Thu, 2011-02-24 at 17:55 -0500, Colin Walters wrote:
> On Thu, Feb 24, 2011 at 5:15 PM, Morten Welinder <mortenw gnome org> wrote:
> > What actual problem was solved by all this infrastructure to keep just
> > one instance?
> Basically for any application which manipulates private files in any
> form (in Firefox' case, this is the history database), it avoids data
> corruption with uncontrolled access by multiple processes.

This doesn't seem likely to be interesting to most apps. GSettings (or
GConf) handles shared access to the configuration data.

>   It also
> matches the GNOME 3 experience; for any apps that can have multiple
> windows, it's usually far saner (and more efficient) to implement it
> with one process.

Maybe I don't understand, but that sounds just like "it's saner" without
telling me why. Or are you talking about windows that are shared between
"document" windows, such as having 2 gimp images open with only one
toolbar window?

I would very much like some reasoning to point people at when I tell
them to use GtkApplication. I will not just hand-wave and say that
people say it's good.

murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]