FPC 3.2.0 - Making changes persistent lazarus / 62-General ---------------------------------------------------------------------- Paolo_R · 2020-06-24 09:31 Using Help in FPC we are told that the CHM Help files are not included. I downloaded them and using Help->Files added them to the IDE. I then saved the changes to fp.ini. Unfortunately when I restart FPC the Help files are not there when I choose Help->Contents - just the original message that the CHM files are not included. Am I doing something wrong? ---------------------------------------------------------------------- lucamar · 2020-06-24 11:19 That (normally) depends on where your fp.ini is saved; if you have it set so that it's saved in the project's folder (which IIRC is the default) and you add there the help files, when you open fp on any other folder that previous fp.ini won't be read. When you start fp inside an "empty" directory (that is, one which doesn't hold traces of the IDE ever having been started there, at least an fp.dir file) it will ask you whether you want to create a new config file. If you select "no" it'll then use a global fp.ini which, once you add them, will hold the location of all help files for any other project which either uses that global fp.ini or copies it as local. Note that for this to work either the global fp.ini must be user- writeable or you must start fp with root/admin privileges. Otherwise the ide will (rightly) complain on exit about the fact that it can't write back the changed configuration. HTH! ---------------------------------------------------------------------- marcov · 2020-06-24 11:58 Here it works. My bet would be confusion between local fp.* files and the central ones in fpc\bin\i386-win32 ---------------------------------------------------------------------- Paolo_R · 2020-06-24 23:51 @lucamar @marcov There is an fp.ini in c:\users\name\appdata\roaming\fp and also in c:\fpc\3.2.0\i386-win32. So if I want any changes to be persistent AND common for all projects - such as the CHM files - should I save in the c:\fpc\3.2.0\i386-win32 fp.ini? If so, and sorry if this is basic, how do I append these changes to fp.ini without overwriting what is already in the existing fp.ini? Thanks ---------------------------------------------------------------------- lucamar · 2020-06-25 02:26 Quote from: Paolo_R on June 25, 2020, 01:51:01 amIf so, and sorry if this is basic, how do I append these changes to fp.ini without overwriting what is already in the existing fp.ini? You have basically three options: 1) As I told you above: start fp inside an empty directory - the IDE will ask you whether you want to create a new config file - select "no" and it'll then use the "global" fp.ini - add the help files and close the IDE. That will take care of any new project. 2) This will allow you to "update" any existing fp.ini: simply open any of them in which you have already added the help files and copy the contents of the [Help] section (just a single Files="..." key- value pair) to whichever other fp.ini you want, including the "global" one at c:\fpc\3.2.0\i386-win32 3) As an alternative to the previous one, the last option is for you to build that [Help] section by hand, which is just a question of doing a "dir /b *.chm > help.txt" and editing that help.txt to add the path, etc. so that you end up with a a file like (in my Linux box): Code: INI  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i [Help]Files ="/usr/share/lazarus/2.0.8/docs/chm/toc.chm;/usr/share/lazarus/2.0.8/d ocs/chm/user.chm;/usr/share/lazarus/2.0.8/docs/chm/prog.chm; etc...and then use that text to update whatever fp.ini you want, as in the second option. That's all there is to it! ---------------------------------------------------------------------- Paolo_R · 2020-06-25 04:50 Lucamar Thanks. I used option 3 and now Help shows correctly.