xregreg.inc in TRegistry.SysRegCreate uses GetAppConfigDir which erros in bigsur
Original Reporter info from Mantis: MIS5
-
Reporter name:
Original Reporter info from Mantis: MIS5
- Reporter name:
Description:
Using TRegistry on Mac will fail on Mac OS Big Sur (User used 11.2.1) with error
"
Unable to create file "/Users/username/.config/MyApp/reg.xml": Permission denied.
Press OK to ignore and risk data corruption.
Press Abort to kill the program.
"
Steps to reproduce:
TmpReg := TRegistry.Create;
//--
try
TmpReg.RootKey := FRegRoot_USER__1;
//--
try
TmpOpen := TmpReg.OpenKey(FRegPath, True);
Additional information:
TRegistry tries use config folder...
So it tries to store preferences in a hidden folder. According to Apple's guidelines, the settings of an application are to be stored in the Preferences folder.
See
https://forum.lazarus.freepascal.org/index.php?topic=53329
Mantis conversion info:
- Mantis ID: 38495
- Version: 2.0.10