Sqlite and Monterey on M1
Klaus major-k
klaus at major-k.de
Thu May 12 14:01:16 EDT 2022
Bonsoir Ludovic,
on the Mac we have write permissions here -> specialFolderPath("preferences")
Works on Monterey as well and is "out of sight" of the user. ;-)
> Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
>
> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked.
>
> Bob S
>
>> On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode <use-livecode at lists.runrev.com> wrote:
>> Hello All,
>>
>> I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db)
>> Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok.
>> (-rwxr-xr-x for the database).
>> The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted).
>> What I miss ?
>> Thanks !
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list