[Lazarus] The default Lazarus profile directory location

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Jun 4 14:50:46 CEST 2009


2009/6/4 Vincent Snijders <vsnijders at vodafonevast.nl>:
>
> But what patches are for this change?


The only change I have make regarding this thread, is the one I posted
before. A simple one line change. If you want me to continue with the
changes in 'startlazarus' to prompt and move the profile directory, I
can do so and post those changes here as well. Currently no changes
have been made to 'startlazarus' yet. Refactoring of LazConf could
happen after that.

============== profiledir.patch ===============
diff --git a/ide/include/unix/lazbaseconf.inc b/ide/include/unix/lazbaseconf.inc
index fd2cab1..0cef80b 100644
--- a/ide/include/unix/lazbaseconf.inc
+++ b/ide/include/unix/lazbaseconf.inc
@@ -141,7 +141,7 @@ end;
 ---------------------------------------------------------------------------}
 procedure InternalInit;
 begin
-  PrimaryConfigPath:=ExpandFileNameUTF8('~/.lazarus');
+  PrimaryConfigPath:=SysToUTF8(GetAppConfigDir(False));
  SecondaryConfigPath:='/etc/lazarus';
 end;

=================  end ===================


What did you guys to when the profile directory was moved under
Windows?  I have not found any "automatically move/migrate the profile
directory" code anywhere. Did you just leave it up to the developer to
move his/her own profile directory?

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list