[Lazarus] Lazarus config woes

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Apr 2 09:36:34 CEST 2011


On Sat, 02 Apr 2011 00:45:56 +0200
Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:

> Mattias Gaertner schrieb:
> 
> >  > If a global config is found, but is invalid/incompatible, a local 
> > config should be created.
> > 
> > Define invalid.
> 
> That's up to the (already existing) IDE code.

Already existing: file is readable and xml syntax is ok.

 
>[...]
> > Windows does not have a location for application config templates. The 
> > first windows laz devel has set the scp to the lazarus directory for 
> > windows. No one has changed/questioned this yet.
> 
> I'm only curious how the IDE can know about that directory, without 
> reading an config file. That's why I assumed that the EXE directory is 
> used for this path, so that the IDE could read a config from there.

Yes.
See the include files in ide/include/*


> BTW, my experiments indicate that putting an environmentoptions.xml into 
> the Lazarus directory (scp) will make the IDE use these settings, but 
> only if there exists no config in the default location. The full config 
> then is written back to the *default* location (pcp), not into the 
> Lazarus directory.

Yes, that's what I meant with used as template.

 
> That's why I'd appreciate some information about the usage of the 
> primary/secondary config paths by the IDE.
> 
> Why does the IDE store an updated config *always* in the default 
> directory, instead in the same directory from which (parts of) the 
> config have been loaded before?

If you want that you can set pcp and scp to the same directory.


Mattias




More information about the Lazarus mailing list