Roadmap

X AIR Edit Linux version does not respect $XDG_CONFIG_HOME

First of all, thank you very much for providing a Linux version of X AIR Edit, it's really appreciated.

However, I have noticed that this version will write its configuration files into the directory ".config/.X-AIR-Edit" in the user's home directory. There are two problems with this. First of all, the additional dot before "X-AIR-Edit" unnecessarily hides the directory. This is not required, since ".config" is already hidden, and it goes against established standards and best practices.

Second, and more importantly, the XDG standard that almost all modern Linux software adheres to defines, among other things, an environment variable $XDG_CONFIG_HOME, that applications should use as the base directory for their own configuration. (See https://specifications.freedesktop.org/basedir-spec/latest/ for the standard.) If this variable is unset, it defaults to "$HOME/.config", i.e. the directory that's currently being used by X AIR Edit.

So far, so good. But if the user has customized the XDG_CONFIG_HOME environment variable, X AIR Edit does not respect it and still insists on putting its configuration directory under "$HOME/.config", no matter what is defined in XDG_CONFIG_HOME.

This is a problem for users that have customized this location, or when X AIR Edit is being used in combination with other software. For example, when trying to create a Flathub package for X AIR Edit, to allow users to easily install the software and run it in a safe, sandboxed environment, the Flatpak runtime requires the applications to respect its custom XDG_CONFIG_HOME location. Since X AIR Edit does not, the package's maintainers were forced to grant it additional permissions, which result in a large red "potentially unsafe" warning at the bottom of <https://flathub.org/apps/com.behringer.XAirEdit>.

To fix this issue, the developers of X AIR Edit would basically need to incorporate one small change: Instead of simply using "$HOME/.config" as the base directory for X AIR Edit's configuration, first look up whether $XDG_CONFIG_HOME is set. If it is, use the directory defined there instead of "$HOME/.config". If it does not, X AIR Edit should use "$HOME/.config" just like it does now.

Thank you for taking the time to consider this request.