JoseExposito / gnome-shell-extension-x11gestures

Enable GNOME Shell multi-touch gestures on X11 with this extension
GNU General Public License v2.0
344 stars 13 forks source link

Honor the XDG basedir specification #24

Closed JoseExposito closed 3 years ago

JoseExposito commented 3 years ago

For user configuration, use $XDG_CONFIG_HOME if set, otherwise fallback to $HOME/.config.

If $XDG_CONFIG_DIRS is set, check if the config is present in one of those directories. Otherwise, fallback to /etc/xdg, as in the spec:

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Finally, fallback to /usr/share for backwards compatibility.