https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
s

spierce7

02/14/2023, 6:33 PM
Is it safe to save things inside of /Users/<user>/Library/Preferences ? It seems like any application can just create any file in this directory. Do we have any guarantees from Apple about the security of the files placed here from our application?
k

Kirill Grouchnikov

02/14/2023, 6:38 PM
s

spierce7

02/14/2023, 7:12 PM
yes - that's what I am worried about, but storing in icloud / non-locally seems like a bad solution also. Is the idea that apps can just easily access other apps preferences?
Where would I store private data for the app?
k

Kirill Grouchnikov

02/14/2023, 7:21 PM
My understanding is that it is mostly for protecting user data (contacts, photos, etc) from apps, not for protecting one app’s data from all the other apps.
m

mikehearn

02/15/2023, 1:22 PM
If you opt in to the app sandbox then you can store files that are protected from other sandboxed apps but not other apps in general.
Otherwise you can use the macOS keystore
8 Views