Difference between revisions of "pcp"

From Free Pascal wiki
Jump to navigationJump to search
m
(added mention of the lazarus.cfg file)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
   /P/s/config_lazarus
 
   /P/s/config_lazarus
  
This option is most useful when using [[Multiple Lazarus | multiple Lazarus]]: it is needed to keep their configurations properly separated.
+
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.
  
 +
Options to Lazarus, including this one, can also appear in the lazarus.cfg file, in the top lazarus directory.
  
 
== Windows ==
 
== Windows ==
Line 17: Line 18:
 
==Linux==
 
==Linux==
 
For Linux (and other Unix-like systems) the default  configuration folder is:
 
For Linux (and other Unix-like systems) the default  configuration folder is:
  ~\.lazarus
+
  ~/.lazarus
  
 
==Configuration files==
 
==Configuration files==
Line 41: Line 42:
 
|-
 
|-
 
| helpoptions.xml   
 
| helpoptions.xml   
 +
|-
 +
| idemake.cfg || A list of the compiled unit files for installed packages. Used to rebuild the IDE
 
|-
 
|-
 
| includelinks.xml   
 
| includelinks.xml   
Line 46: Line 49:
 
| inputhistory.xml   
 
| inputhistory.xml   
 
|-
 
|-
| packagefiles.xml
+
| packagefiles.xml || A list of the package files (.lpk) of packages installed in the IDE
 
|-
 
|-
 
| compilertest.pas         
 
| compilertest.pas         

Latest revision as of 13:31, 6 July 2023

PCP, short for Primary Config Path, is a Lazarus command-line option which permits specifying the directory where Lazarus configuration files are located.

For example, a Linux launcher link (.desktop file) may contain a line like:

Exec=/P/s/lazarus/lazarus --pcp="/P/s/config_lazarus"

which tells Lazarus to look for its configuration in the folder:

 /P/s/config_lazarus

This option is most useful when using 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.

Options to Lazarus, including this one, can also appear in the lazarus.cfg file, in the top lazarus directory.

Windows

If option --pcp is not specified, the default folder in Windows Vista and up is:

C:\Users\USERNAME\AppData\Local\lazarus

Linux

For Linux (and other Unix-like systems) the default configuration folder is:

~/.lazarus

Configuration files

file decription
lazarus.dci Code Templates
jcfsettings.cfg Jedi Code Format settings
codeexploreroptions.xml Code Explorer Options
codetoolsoptions.xml Code Tools Options
editormacroscript.xml
editoroptions.xml Editor Options
environmentoptions.xml Environment Options
fpcdefines.xml
helpoptions.xml
idemake.cfg A list of the compiled unit files for installed packages. Used to rebuild the IDE
includelinks.xml
inputhistory.xml
packagefiles.xml A list of the package files (.lpk) of packages installed in the IDE
compilertest.pas
laz_indentation.pas