Recent

Author Topic: How to override FreePascal built-in IDE (fp IDE) fp.cfg from external *.cfg?  (Read 1294 times)

zamronypj

  • Full Member
  • ***
  • Posts: 133
    • Fano Framework, Free Pascal web application framework
Can I tell fp IDE to load my own existing *.cfg instead of creating its own fp.cfg file?

Fano Framework, Free Pascal web application framework https://fanoframework.github.io
Apache module executes Pascal program like scripting language https://zamronypj.github.io/mod_pascal/
Github https://github.com/zamronypj

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.


 fp -C <yourfile.cfg>

zamronypj

  • Full Member
  • ***
  • Posts: 133
    • Fano Framework, Free Pascal web application framework
I used -Cfilename option but it seemed only accept *.ini, not Free Pascal configuration file.
Fano Framework, Free Pascal web application framework https://fanoframework.github.io
Apache module executes Pascal program like scripting language https://zamronypj.github.io/mod_pascal/
Github https://github.com/zamronypj

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Ah yes, it is for the session file, not the config. I looked at the params, and doesn't seem possible.

You can maybe override a global one by making a local ~/.fp.cfg or so.

lucamar

  • Hero Member
  • *****
  • Posts: 4219
fp looks for its config first in the directory from which it's launched; if you want it to load a custom fp.cfg just copy it over before launching it. For example, by launching a shell script similar to:
Code: [Select]
!#/bin/sh
cp ~/username/templates/specialfp.cfg ./fp.cfg
fp $@
« Last Edit: June 18, 2019, 11:28:20 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018