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

ursus

02/06/2023, 4:33 AM
Coming from Android -- when building a desktop app, where should I put my database? Or rather, where should app private files go? Is there such thing the way mobile apps have it? (deleted on uninstall and ideall not accessable without root) Is it a
.myApp
hidden folder in user home? Or there maybe manually create
~/Library/foo.bar.myapp
. on a mac? appData/local for Windows? or maybe there is a java api which abstracts this away?
m

Mitchell Syer

02/06/2023, 5:05 AM
I use https://github.com/harawata/appdirs in my application for this
a

Arjan van Wieringen

02/06/2023, 6:00 AM
I also use AppDirs. Works like a charm.
9 Views