-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] Follow XDG Base Directory spec on Linux
Uses QStandardPaths to get cache, data and config XDG folders. The config file go to $XDG_CONFIG_HOME/hydrogen/hydrogen.conf The cache folder go to $XDG_CACHE_HOME/hydrogen/ And all the data subfolders (drumkits, plugins, playlists, etc.) go to $XDG_DATA_HOME/hydrogen/ along with the hydrogen.log file. If old folder (~/.hydrogen/) is found, use that instead of the XDG paths. The __usr_*_paths are setted outside a function, so QStandardPaths isn't avaliable to get the XDG paths. Also no APPNAME is avaliable until setApplicationName() is called after the Filesystem::check_usr_paths() is used. To avoid this update_usr_paths() is added at the begining of check_usr_paths() to update the correct values from QStandardPaths.
- Loading branch information
1 parent
3f30d34
commit 5a62b9a
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters