mod-audio / mod-desktop

MOD Audio for the desktop
https://mod.audio/
GNU Affero General Public License v3.0
169 stars 9 forks source link

Respect XDG user documents directory #27

Closed SpotlightKid closed 9 months ago

SpotlightKid commented 11 months ago

Please don't do that:

https://github.com/moddevices/mod-app/blob/063a88eaef4379bcaf30c1b2269988500cceb2dd/systray/main.cpp#L245

That will clutter the user's home directory with yet another directory, if the desktop language isn't english or the user changed the location of the DOCUMENTS folder.

Use xdg-user-dir DOCUMENTS everywhere instead.

falkTX commented 11 months ago

well yeah that is the point if you look just above that code line. the xdg stuff is still TODO. the whole app initialization thing is very crude and ugly, just enough to get things started for now.

falkTX commented 9 months ago

Fixed in 503c5edeab0b8570de38a3036fce96231c2b6b0d, now using Qt for this, by means of QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)