Recent

Author Topic: Create own config folder  (Read 2608 times)

Groffy

  • Full Member
  • ***
  • Posts: 205
Create own config folder
« on: September 26, 2015, 07:24:39 pm »
Hello,

I compiled Lazarus from trunk on my Linux Manjaro system. Its now using the config folder of my default Lazarus 1.4.2 installation. How can I create a separate config folder for my Lazarus 1.5?

Best regards
« Last Edit: September 26, 2015, 07:29:06 pm by Groffy »
Linux Mint / Windows 10 / Lazarus 3.6.0 / trunk

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Create own config folder
« Reply #1 on: September 26, 2015, 07:35:44 pm »
See http://wiki.lazarus.freepascal.org/lazbuild
which explains the command-line options you can specify for your lazarus executable:
--pcp=path-to-primary-config
and
--scp=path-to-secondary-config

Groffy

  • Full Member
  • ***
  • Posts: 205
Re: Create own config folder
« Reply #2 on: September 26, 2015, 07:38:27 pm »
Yes, thank you - just found that in the Lazarus wiki. So the command line option is the only way(?)
Linux Mint / Windows 10 / Lazarus 3.6.0 / trunk

rvk

  • Hero Member
  • *****
  • Posts: 6922
Re: Create own config folder
« Reply #3 on: September 26, 2015, 07:47:56 pm »
You can put the following line in lazarus.cfg in the same directory as the lazarus executable:
Code: [Select]
--primary-config-path=path-to-config-directory

(at least on Windows this works)
« Last Edit: September 26, 2015, 07:50:38 pm by rvk »

Groffy

  • Full Member
  • ***
  • Posts: 205
Re: Create own config folder
« Reply #4 on: September 26, 2015, 07:56:50 pm »
Right, I already forgot that. I did that under Win7. Thank you!

Linux Mint / Windows 10 / Lazarus 3.6.0 / trunk

Groffy

  • Full Member
  • ***
  • Posts: 205
Re: Create own config folder
« Reply #5 on: September 28, 2015, 09:16:41 am »
Using a Lazarus.cfg file is working for me, even on my Linux Manjaro system somehow the windows positions are lost after restarting Lazarus...(). The "default" Lazarus 1.4.2 installation is doing that without problems. The XML file environmentoptions.xml should store the user windows postions...

Any confirmation for this behaviour for the Lazarus trunk (1.5) version under Linux?

Best regards
Linux Mint / Windows 10 / Lazarus 3.6.0 / trunk

 

TinyPortal © 2005-2018