[Geany-devel] Race condition when saving geany.conf
cankoy at xxxxx
Fri Feb 26 17:00:20 UTC 2010
--- On Fri, 2/26/10, Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> From: Nick Treleaven <nick.treleaven at btinternet.com>
> Subject: Re: [Geany-devel] Race condition when saving geany.conf
> To: geany-devel at uvena.de
> Date: Friday, February 26, 2010, 3:39 PM
> On Wed, 24 Feb 2010 22:02:55 +1100
> Lex Trotman <elextr at gmail.com>
> > The overall issue of preferences, configuration and
> sessions for multiple
> > instances is an interesting one (Sorry Eugene, I've
> got no answers but lots
> > of questions)
> > Why is the first necessarily the "master"?
> > Is this by definition or is there a reason?
> > What if the first is started with -i?
> > And what happens to configuration changes I make
> in other instances?
> > You see, I'm forgetful, if I had more than one Geany
> running (and I can see
> > good reasons to do that) then I may forget which one
> is the "master" and
> > change a preference in a different instance, so what
> happens to the conf
> > file?
> At first Geany couldn't be run with multiple instances due
> to the
> socket code. I changed this but did nothing to avoid
> overwrite problems.
> As Geany is written without the ability to share settings,
> and in
> some cases not able to update a setting at runtime, I think
> would be too much work making Geany truly multi-instance
> like Firefox.
I agree, it's a lot of work.
Those who need to run multiple instances should consider using -c/--config option.
More information about the Devel