Where does data typically get stored for desktop a...
# compose-desktop
d
Where does data typically get stored for desktop apps? Is it OS dependent? I’m trying to find where it’s going on a mac for the multiplatform-settings library
Looks like it’s going to a java.util.Properties file, still trying to track down where the file is though.
k
there is an awesome lib: https://filekit.mintlify.app/
r
Storage location for Multiplatform Settings depends on what backing API you're using. If you use
PropertiesSettings
then you are responsible for serializing to file in the
onModify
lambda that you pass into the constructor.
c
i used https://github.com/Syer10/Kotlin-Multiplatform-AppDirs in a desktop (macos windows linux) app with success recently.
👍 1
d
Oh that looks nice. Also thanks @russhwolf for your response. I ended up adding a debug menu to my app with a button to clear the settings data
I think the main reason I went with the multiplatform-settings library was that it was one of the only persistence libraries supporting wasm as well