Difference between revisions of "pcp"

From Free Pascal wiki
Jump to navigationJump to search
(→‎Linux: pathdelimiter is forwardslah on *nix)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''PCP''' is short for '''Primary Config Path''' and denotes a directory where config files are located.
+
'''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 | multiple Lazarus]]: it is needed to keep their configurations properly separated.
 +
 
  
 
== Windows ==
 
== Windows ==
 +
If option --pcp is not specified, the default folder in Windows Vista and up is:
 
  C:\Users\USERNAME\AppData\Local\lazarus
 
  C:\Users\USERNAME\AppData\Local\lazarus
  
 
==Linux==
 
==Linux==
  ~\.lazarus
+
For Linux (and other Unix-like systems) the default  configuration folder is:
 +
  ~/.lazarus
  
 
==Configuration files==
 
==Configuration files==
* lazarus.dci
+
{| class="wikitable"
* jcfsettings.cfg    
+
|-
 
+
! file !! decription
* editormacroscript.xml  
+
|-
* editoroptions.xml      
+
| lazarus.dci || [[IDE Window: Code Templates|Code Templates]]
* environmentoptions.xml
+
|-
* fpcdefines.xml     
+
| jcfsettings.cfg || [[IDE_Window:_JCF_Format_Settings_Options|Jedi Code Format settings]]   
* helpoptions.xml   
+
|-
* includelinks.xml   
+
| codeexploreroptions.xml || [[IDE Window: Code Explorer Options|Code Explorer Options]]
* inputhistory.xml   
+
|-
* packagefiles.xml
+
| codetoolsoptions.xml || [[IDE Window: Codetools Options|Code Tools Options]]
 
+
|-
* compilertest.pas         
+
| editormacroscript.xml ||
* laz_indentation.pas
+
|-
 +
| editoroptions.xml || [[IDE Window: Editor Options|Editor Options]]
 +
|-
 +
| environmentoptions.xml || [[IDE Window: Environment Options|Environment Options]]
 +
|-
 +
| fpcdefines.xml     
 +
|-
 +
| helpoptions.xml   
 +
|-
 +
| includelinks.xml   
 +
|-
 +
| inputhistory.xml   
 +
|-
 +
| packagefiles.xml
 +
|-
 +
| compilertest.pas         
 +
|-
 +
| laz_indentation.pas
 +
|}
  
  
 
[[Category:Configuration]]
 
[[Category:Configuration]]

Revision as of 17:11, 18 January 2020

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.


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
includelinks.xml
inputhistory.xml
packagefiles.xml
compilertest.pas
laz_indentation.pas