I've got hard time finding information about how to store settings in a desktop app... what would you recommend for this purpose?
d
Dima Avdeev
10/29/2023, 2:19 PM
Sorry, but it is not Compose related question. All operating system may have their own system for settings.
For Linux and MacOS good practice to use ~/.my_app_settings directories. But on MacOS you will need additional permissions.
Another way is to store settings in Application Content folder on MacOS.
👍 1
✅ 1
h
he-dev
10/29/2023, 2:23 PM
ok, I understand. With Compose I'm often not sure whether it has something already on board or it's an entirely different thing. I guess I then should probably look for something generic related to Java
c
Casey Brooks
10/29/2023, 3:19 PM
Compose is only focused on the UI, and it doesn't have an opinion on things like settings, DBs, app architecture/folder structure, etc.
Multiplatform Settings has a JVM storage option, which wraps the standard Java Preferences https://github.com/russhwolf/multiplatform-settings#platform-constructors
👍🏻 1
h
he-dev
10/29/2023, 4:10 PM
thx! I've googled for general java solutions and I'll go with jackson-dataformat-yaml