XFCE doesn't include Flatpak apps in menus when started as a VNC session

Hi,

Thanks for your work on XFCE. I use TigerVNC to start an XFCE desktop when I need a desktop interface on Incus/LXC containers. I've noticed that by default XFCE doesn't include Flatpak-installed apps in the menus. The reason for this is the XDG_DATA_DIRS variable which defaults to:

/usr/local/share:/usr/share

I'd like to suggest doing something similar to KDE, which automatically checks for Flatpak and if so scans the relevant directories to make sure Flatpak-installed apps appear in the menus.

Currently as a workaround I have this in my ~/.vnc/xstartup file:

export XDG_DATA_DIRS="/var/lib/flatpak/exports/share:HOME/.local/share/flatpak/exports/share:XDG_DATA_DIRS"