293
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 07 Jul 2023
293 points (96.8% liked)
Linux
48033 readers
765 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
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 them with certain flags. I'm interested to know if native Wayland app actually works. Or is it possible that distrobox is actually use xwindow and pass everything to the host's xwayland process? Can't seem to find anything about it in the docs.
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.