2009/6/3 Vincent Snijders <[email protected]>: > > If it isn't broken, don't fix it.
:-) Crappy answer. > 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. ;-) > 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. 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 Simple and clean. Also no fuss for the user. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
