alexkay / spek

Acoustic spectrum analyser
http://spek.cc
GNU General Public License v3.0
2.6k stars 259 forks source link

Implement `$XDG_CONFIG_HOME` on Unix systems #236

Closed 0x08088405 closed 2 years ago

0x08088405 commented 2 years ago

Spek creates ~/.config/spek/ on startup, and does not respect the XDG Base Directory Specification correctly:

XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

Even if the environment variable is configured, it's not considered, and the default location is used anyway. This fixes that.

alexkay commented 2 years ago

Thank you!