Is it not possible to write to the user preference folder in Mojave?
matthias_livecode_150811 at m-r-d.de
Tue Oct 30 11:39:56 EDT 2018
thanks for the information. But my app writes to the ~/Library/Preferences folder. And therefore the user should have write access to it.
As i wrote. On a new Mojave installation on a VM (i still have 10.13.6 here) i was able to write the registration details to that folder without problems. Even with a standard user account.
I will let you all know, when i found out why the customer could not register the app successfully.
free tools for Livecoders:
> Am 30.10.2018 um 15:28 schrieb Sean Cole (Pi) via use-livecode <use-livecode at lists.runrev.com>:
> Hi Matthias,
> This is, without any doubt, a permissions issue and definitely nothing to
> do with sandboxing. You need to unlock the folder you are saving to. The
> recommended form is to have a folder within the preferences folder named
> [domain].[appName] (ie, com.mycompany.myapp), and store your prefs files in
> there. But you need to make sure that the permissions for both the main
> Preferences folder and your app prefs folder are set to read/write for
> either 'admin' AND/OR 'user'. Check also the permissions for the pref file
> The Apple Dev Docs say this about the /Library/Preferences/ folder:
>> You should not create files in this directory yourself. Instead, use the
>> NSUserDefaults class or CFPreferences API to get and set preference values
>> for your app.
> Use of NSUserDefaults has not yet been set up for LC apps. You should be
> okay to write there as long as the permissions are correct. You may have to
> use a terminal command to find out for sure what the permissions are or to
> change them using chmod or something.
> All the best
> On Tue, 30 Oct 2018 at 11:36, Matthias Rebbe via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>> Tried here now with a standard user and an admin account.
>> It works with both account types w/o problems.
>> I will have to contact the customer again. A big problem is that he´s
>> Italian and does not speak english. At least his first emails were in
>> Italian unless i mentioned that i had to translate his email to English and
>> also my answer to Italian with Google Translate. After that he used Google
>> Translate also.
>> I just can hope, that Google does its job good and i do not send offending
>> messages to him. ;)
>> Matthias Rebbe
>> free tools for Livecoders:
>>> Am 30.10.2018 um 00:09 schrieb Bob Sneidar via use-livecode <
>> use-livecode at lists.runrev.com>:
>>> I wonder if they are looged in as administrators?
>>> Bob S
>>>> On Oct 29, 2018, at 16:05 , Matthias Rebbe via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>>> I´ve setup a VM with Mojave and my app was able to write the
>> registration data to the preferences folder without a problem.
>>>> So i am not sure what´s going on on the machine of the customer. But
>> at least i know now that my app is able to access that folder.
>>>> Matthias Rebbe
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode <
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode