Here is a decent INI editor made in LAZIt's not mine, but you can doanload the ZIp project towards middle of page.https://forum.lazarus.freepascal.org/index.php?topic=13788.0
Tested on Linux. The code you provided only will work correctly if you modify the line #8 to:IniFile1 := TIniFile.Create(IniDir1 + '/' + 'Config.ini');
Don't use \/ or /\, but use DirectorySeparator...https://www.freepascal.org/docs-html/rtl/system/directoryseparator.html(And try to not use inifiles in the first place...., but that's another matter about bad habits)Good practice is even for the blind to see if you know how to access the documentation....(Handoko knows that... )