eivindveg / HotSUploader

JavaFX-based Replay Uploader for Heroes of the Storm
Apache License 2.0
185 stars 36 forks source link

Linux: fix getHotSHome() by using xdg user-dirs config #90

Closed minlexx closed 8 years ago

minlexx commented 8 years ago

Try to parse xdg user-dirs config file to find the correct location of user's "Documents" folder, which can be localized. See http://freedesktop.org/wiki/Software/xdg-user-dirs/ specification.

Trying to make this less breaking as possible: getHotSHome() will try to read config file only if default path USER_HOME/Heroes of the Storm/Accounts/ does not exist, and it has a default value "Documents" in case it could not read real values from config file.

minlexx commented 8 years ago

Forgot to mention: this feature could be a true fix for issue #38