Thunar and other xfce apps ignore the XDG Base Dir variables when launched in wayland.
I've been recently testing both sway and hyprland, I come from xfce4 and i3 and I have the following environment variables being exported on my .zshenv:
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/var/state"
export XDG_CONFIG_HOME="$HOME/.local/config"
export XDG_CACHE_HOME="$HOME/.local/var/cache"
One of the first issues I ran into was that the xfce applications had reset to their default settings. This was caused because they are ignoring the XDG Variables and are instead creating ~/.config
dir containing xfce4 and Thunar subdirectories, there is also a new ~/.cache
dir but I'm not sure it is the xfce apps that are creating it since it only contains a mesa shaded cache subdirectory.
And the variables are working as other applications are picking them up, it is only the xfce4 apps that are not picking them up when launched on a wayland window manager. This does not happen on i3.
I also tested logging into tty before starting sway just in case it needs some time for the variables to apply for the xfce apps, didn't work either.
So far the applications affected are Thunar, Xfce4-terminal and mousepad.