How to run Unigine Superposition in Wayland

TL;DR

Unset some force to force xwayland:

env -u WAYLAND_DISPLAY -u QT_QPA_PLATFORM ./Superposition

The story

I’m on wayland (sway) and want to run the Unigine Superposition benchmark, but when I try to run it, I get:

$ ./Superposition
This application failed to start because it could not find or load the Qt platform plugin "wayland"
in "".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
[1]    14239 IOT instruction (core dumped)  ./Superposition

I saw Brodie’s video on running a full X11 session in xwayland and thought I could use that to force Superposition to run in xwayland.

That does work but it turns out it’s not needed. You can get away with

env -u WAYLAND_DISPLAY -u QT_QPA_PLATFORM ./Superposition

Thanks to this reddit comment from OneMoreTurn with the tip on how to force a command to use xwayland.

comments powered by Disqus