This has been previously answered, TRegistry is multi platform and on Linux is supposed to use reg.xml file inside .config/appname/ folder.
Unfortunately this doesn't work for me for some reason. Doing strace I do see that the file is being checked:
access("/home/as/.config/test/reg.xml", F_OK) = -1 ENOENT (No such file or directory)
However it's never created and creating it by hand with touch does nothing, the file never gets written to.
Am I doing something wrong in the code?
Cfg := TRegistry.Create(KEY_READ Or KEY_WRITE);
Cfg.RootKey := HKEY_CURRENT_USER;
if Cfg.OpenKey('Software\\Tenox\\test\\',True) then
begin
Cfg.WriteBool('TestVal', "foo");
end