Re: GtkApplication and argc/arv



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.  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.

As for things like a developer scenario where you want to disable it
temporarily for whatever reason, sure - we could add
G_DEBUG=disable-single-instance or something?


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