I noticed on a machine with Intel Graphics running 8.0-current with the Xfce desktop that the xorg vulkan driver does not get loaded by graphics/vulkan-loader. 'vulkaninfo' from vulkan-tools returns an error.

This is because /usr/local/bin/startxfce4 (which is installed by the xfce4-session package) checks for the environment variable XDG_DATA_DIRS, which is used by vulkan-loader to define the search paths for the driver/loader json definitions.

If it is not previously defined, XDG_DATA_DIRS is set to

  XDG_DATA_DIRS=/usr/share:/usr/local/share

and the files from the xbase80 set in /usr/X11R6/share/vulkan/icd.d are therefore not found.

Rather than patching xfce4-session, a 'fix' might be to add

  export XDG_DATA_DIRS=/usr/X11R6/share:/usr/share:/usr/local/share

to ~/.xsession

A note to this effect could be added to the pkg-readme/xfce file in meta/xfce

As well as the 'vulkan ports', I believe this is relevant for Chromium and friends if so configured.

Regards
Chris Billington

Reply via email to