Re: xfce and Xenocara vulkan drivers, graphics/vulkan-loader
Chris Billington <[email protected]> Wed, 29 Jul 2026 09:01:56 +0800
| Newsgroups | gmane.os.openbsd.ports |
|---|---|
| Message-ID | <[email protected]> |
Landry Breuil wrote: > Le Tue, Jul 28, 2026 at 04:17:14PM +0800, Chris Billington a écrit : >> Chris Billington wrote: >>> 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 >> >> A suggested diff for the above: > > thanks for that diff, though it's a bit cumbersome to have to follow > such instructions, i'll probably see about upstreaming a fix to > startxfce4 instead (and backport it as patch). > That would be better. No doubt other BSDs which have Xorg in /usr/X11R6 have the same issue.