Can you run Wayland GUI apps in distrobox?
Yes. I run VS Code in an Ubuntu distrobox, with the electron wayland flags. Works real nice. KDE Wayland btw.
VSCode is an electron application, right? Electron apps use xwindow (or xwayland) unless you launched then with certain flag. I’m interested to know if native Wayland app actually works.
Yes, VSCode is an electron app, and I use flags to launch it with Wayland. I export VSCode to the host system with the flags attached, so that VSCode automatically launches in Wayland. The command I used: distrobox-export --app code --extra-flags “–enable-features=WaylandWindowDecorations --ozone-platform-hint=auto”
Interesting. I’ll have to try this when I got the time. Thanks!
I’m pretty sure it’s wayland because on KDE wayland, with 200% scaling, when the cursor is over an xwayland window, it looks blurry. This doesn’t happen on wayland windows. Also for some reason electron and chromium based apps run at 60 fps on wayland, while xwayland apps run at 144 fps as it should, and my VS Code in the Distrobox with the wayland flags also runs at 60 fps. Weird KDE stuff.