Alameyo / flame

Flame - modern XMPP Instant Messenger that will run on JVM
Apache License 2.0
3 stars 2 forks source link

Move settings to AppData on Windows #3

Closed wrooot closed 5 years ago

wrooot commented 5 years ago

Program settings should not be saved directly in a user's profile on Windows (e.g. C:\users\wroot\flame). It should go to C:\Users\wroot\AppData\Roaming\flame.

Alameyo commented 5 years ago

Thanks for noting that. I definitely will move to fixing properties/files issues.

wrooot commented 5 years ago

This might help https://stackoverflow.com/questions/9235734/how-do-i-get-the-value-of-windows-appdata-location-variable-in-java/9235890 Although by doing that you will have to have separate code for Windows and other OSes to save settings. Spark also was saving just in home folder for all systems in the past. But now it saves to APPDATA\Spark on Windows. There is even an import code. if you upgrade from an older version.