hey is there a kotlin native friendly way of locat...
# kotlin-native
g
hey is there a kotlin native friendly way of locating the user's home directory? (or better yet, the platform's standard location for config files) System.getProperty("user.home") is how i'd naively do in jvm but that's not available in native obvs
e
and like it says, just knowing the home directory isn't enough - Windows, macos, Linux all have different conventions for where things go within them
g
and like it says, just knowing the home directory isn't enough - Windows, macos, Linux all have different conventions for where things go within them
💯 , but in recent years i've seen more and more apps standardising where their config files go and not anymore always ~ with a dot file, (sometimes ~/config/<app>), sometimes others -- and then get updated to "get it right". So yeah that lib you just shared might be exactly that, i'll have a look, cheers.
yeah that seems about right although the sample output for the osx version doesn't right to me, for config files 🙂 (I don't have a
~/Library/Application\ Support/config/
folder) thanks for your input!