I can not find Flatpaks when using Kex (kali-win-kex). The vnc session seems to overwrite the XDG_DATA_DIRS env variable and misses all installed Flatpaks .desktop files.
I tried setting manual environmental variables which after ‘export’ are kept in my ‘kex --sound --win’ session but XDG_DATA_DIRS gets overwritten every time i start Kex.
Where does kex source it’s env variables? I can not seems to find where this is done and it does not seem to run all /etc/profile.d/* files either.