Saving Registration Code

Does it mean that I am not suppose to use SpecialFolder.SharedPreferences on Macs? The notes say not all Specialfolder options work on all platforms.

/Library/Preferences ist not the prefs folder inside the user library, but the main prefs folder of the system - so yes, you might have no permission to write to that folder.

Why dont you use something inside the SpecialFolder.ApplicationData like

SpecialFolder.ApplicationData.child("com.company.appname")
3 Likes

This works in testing and for one user, but if there are several users on the machine, they will not be seeing the same file - each will get their own.
Thats the purpose of the ‘shared’ aspect.

Remember

Does this mean he logs in as “AdminUserXYZ” and then expects this to work for “RegularUserABC”?

Good point, so have you got any of the shared folders to cooperate?

For Mac (as it was mentioned in this thread), I use SpecialFolder.SharedDocuments.

It depends on the licensing: is the registration code valid for all users on a machine or is it on a per user base