[Lazarus] The default Lazarus profile directory location

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jun 3 18:18:25 CEST 2009


On Wed, 3 Jun 2009 13:30:52 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> 2009/6/3 Vincent Snijders <vsnijders at vodafonevast.nl>:
> >
> > If it isn't broken, don't fix it.
> 
> :-) Crappy answer.

No, only too condensed. ;)


> > Correct. The change was needed, because more and more the executable
> > directory was off limits for writing by ordinary users.
> 
> So why not change all platforms to use the GetAppConfigDir(False)
> result?  I'm a consistency freak. ;-)

Well, looking at my home, it would be more "consistent" to keep it
~/.lazarus.

 
> > So what should it be set to keep the current config directory? If
> > $XDG_CONFIG_HOME contains the same as $HOME, the result of
> > GetAppConfigDir(False) will be ~/lazarus instead of ~/.lazarus.
> 
> I know, but you can use OnGetAppName to inject a '.' as a prefix to
> the 'lazarus' name, but that's not the solution either. The point is,
> why does one platform use GetAppConfigDir() and other platforms don't.

I think Linux is closer to BSD and OS X.
Does BSD and OS X follow the freedesktop "standard"?


>  For a better answer, see my next comment below...
> 
> >>
> >> mv ~/.lazarus ~/.config/lazarus
> >> ln -s ~/.config/lazarus ~/.lazarus
> >>
> >
> > Or use some alias, which adds --pcp=~/.config/lazarus to the
> > command to start lazarus.
> 
> Even better would be, if Lazarus starts up (this code could be placed
> in the startlazarus application to keep Lazarus clean) and it sees the
> old profile location (~/.lazarus), prompt the user with a one time
> dialog, if they would like to migrate the settings to the new
> location. If yes, startlazarus could simply move ~/.lazarus to
> ~/.config/lazarus

And add the warning that this move means that older lazarus version
won't find the configs anymore, that they will recreate the configs
at startup and you will end up with two independent config directories.


> Simple and clean. Also no fuss for the user.


Mattias




More information about the Lazarus mailing list