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