Sign in Join
Wiki copytemporary

pcp: what changed

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

Title: pcp

OldNewLine
1+**PCP**, short for **Primary Config Path**, is a Lazarus command-line option which permits specifying the directory where Lazarus configuration files are located.
2+
3+For example, a Linux launcher link (.desktop file) may contain a line like:
4+
5+`Exec=/P/s/lazarus/lazarus `**`--pcp`**`="/P/s/config_lazarus"`
6+
7+which tells Lazarus to look for its configuration in the folder:
8+
9+` /P/s/config_lazarus`
10+
11+This 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.
12+
13+Options to Lazarus, including this one, can also appear in the lazarus.cfg file, in the top lazarus directory.
14+
15+## Windows
16+
17+If option --pcp is not specified, the default folder in Windows Vista and up is:
18+
19+`C:\Users\USERNAME\AppData\Local\lazarus`
20+
21+## Linux
22+
23+For Linux (and other Unix-like systems) the default configuration folder is:
24+
25+`~/.lazarus`
26+
27+## Configuration files
28+
29+| file | decription |
30+|----|----|
31+| lazarus.dci | [[IDE Window: Code Templates|Code Templates]] |
32+| jcfsettings.cfg | [[IDE Window: JCF Format Settings Options|Jedi Code Format settings]] |
33+| codeexploreroptions.xml | [[IDE Window: Code Explorer Options|Code Explorer Options]] |
34+| codetoolsoptions.xml | [[IDE Window: Codetools Options|Code Tools Options]] |
35+| editormacroscript.xml | |
36+| editoroptions.xml | [[IDE Window: Editor Options|Editor Options]] |
37+| environmentoptions.xml | [[IDE Window: Environment Options|Environment Options]] |
38+| fpcdefines.xml | |
39+| helpoptions.xml | |
40+| idemake.cfg | A list of the compiled unit files for installed packages. Used to rebuild the IDE |
41+| includelinks.xml | |
42+| inputhistory.xml | |
43+| packagefiles.xml | A list of the package files (.lpk) of packages installed in the IDE |
44+| compilertest.pas | |
45+| laz_indentation.pas | |
46+
47+---
48+*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).*
49+Category: Configuration

Back to history