I’ve created a snap package of alacritty with classic confinement. Recently, I started using snapcraft-desktop-helpers as it helps for both GL related issues and for setting environment variables properly.
The problem is, it also sets variables like XDG_CONFIG_HOME to $SNAP_USER_DATA/.config which is kind of problematic for an app with classic confinement. In my case, alacritty searches for its config file in this folder but it doesn’t exist. One would say “that’s fine, just move the config file” but there are other apps (maybe started inside alacritty) which will look for their configuration files inside alacritty’s $SNAP_USER_DATA – an example is neovim.
So when I start alacritty, its XDG_CONFIG_HOME is set to $SNAP_USER_DATA/.config – then if I start neovim inside alacritty, it’ll search for its config inside alacritty’s snap folder.
I created an issue on Github. Is there something I can do to change this behaviour? I couldn’t find any special variable/file that I could set/save to change it.