Recent

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

zamronypj

  • New Member
  • *
  • Posts: 42
    • 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
Personal Projects https://v3.juhara.com
Github https://github.com/zamronypj

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7590


 fp -C <yourfile.cfg>

zamronypj

  • New Member
  • *
  • Posts: 42
    • 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
Personal Projects https://v3.juhara.com
Github https://github.com/zamronypj

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7590
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: 2124
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 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.