Sign in Join
Wiki copytemporary

pcp: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11**PCP**, short for **Primary Config Path**, is a Lazarus command-line option which permits specifying the directory where Lazarus configuration files are located.
22
33For example, a Linux launcher link (.desktop file) may contain a line like:
44
5-`Exec=/P/s/lazarus/lazarus `**`--pcp`**`="/P/s/config_lazarus"`
5+```text
6+Exec=/P/s/lazarus/lazarus --pcp="/P/s/config_lazarus"
7+```
68
79which tells Lazarus to look for its configuration in the folder:
810
9-` /P/s/config_lazarus`
11+```text
12+ /P/s/config_lazarus
13+```
1014
1115This option is most useful when using [[Multiple Lazarus|multiple Lazarus]]: it is needed to keep their configurations properly separated. Note that while most versions of Lazarus you will come across are case insensitive to --pcp, lazbuild before (probably) 2.4.0 is not when it reads the lazarus.cfg file.
1216
1317Options to Lazarus, including this one, can also appear in the lazarus.cfg file, in the top lazarus directory.
1418
1519## Windows
1620
1721If option --pcp is not specified, the default folder in Windows Vista and up is:
1822
19-`C:\Users\USERNAME\AppData\Local\lazarus`
23+```text
24+C:\Users\USERNAME\AppData\Local\lazarus
25+```
2026
2127## Linux
2228
2329For Linux (and other Unix-like systems) the default configuration folder is:
2430
25-`~/.lazarus`
31+```text
32+~/.lazarus
33+```
2634
2735## Configuration files
2836
2937| file | decription |
3038|----|----|
3139| lazarus.dci | [[IDE Window: Code Templates|Code Templates]] |
3240| jcfsettings.cfg | [[IDE Window: JCF Format Settings Options|Jedi Code Format settings]] |
3341| codeexploreroptions.xml | [[IDE Window: Code Explorer Options|Code Explorer Options]] |
3442| codetoolsoptions.xml | [[IDE Window: Codetools Options|Code Tools Options]] |
3543| editormacroscript.xml | |
3644| editoroptions.xml | [[IDE Window: Editor Options|Editor Options]] |
3745| environmentoptions.xml | [[IDE Window: Environment Options|Environment Options]] |
3846| fpcdefines.xml | |
3947| helpoptions.xml | |
4048| idemake.cfg | A list of the compiled unit files for installed packages. Used to rebuild the IDE |
4149| includelinks.xml | |
4250| inputhistory.xml | |
4351| packagefiles.xml | A list of the package files (.lpk) of packages installed in the IDE |
4452| compilertest.pas | |
4553| laz_indentation.pas | |
4654
4755---
4856*From the Free Pascal wiki, page "pcp", as it stood on 2023-07-06 after a change by Dbannon, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
4957Category: Configuration

Back to history