-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run Compass under native Wayland? #3938
Comments
@sepehr We aren’t doing that much in terms of fancy work on top of Electron, so this probably isn’t very Compass-specific. At the same time, I’m not an expert for how Electron/Chromium work with different display servers. Do you know if there would be a way to repro this without having to fully set up a physical machine using wayland? |
@addaleax Thanks for the follow-up and apologies for the my late reply. I have to look closer tbh. However, knowing that there is upstream support for native Wayland in Electron, Compass job is done if we are sure that the arguments it does not recognize are passed downwards to Electron rather than being omitted. Here's how VSCode output look like when it's passed the wayland-specific arguemnts:
I hope I'll find the time to look into this closer. |
I ended up using the mongodb-compass --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --ignore-additional-command-line-flags |
Thanks for your input @ahmafi. I ended up ditching fractional scaling to address my issues. With 200% scaling, things are vivid again. |
the
However, this approach finally did work but after a reboot. I suspect I had too many pre-existing versions of the app already run with different parameters after trying a bunch of different things to get it to start up.
Also this is very specific to my distro most likely but I was missing a backend for Manjaro Sway:
I'm a little beyond my depth here so I don't know exactly why the above commands are needed but I'm able to run compass now. |
It would be great if the app also respected |
I am gonna post my fair share of problems with wayland and mongo-compass, the whole discussion is here: tl;dr is that if I have env variable In combination with fixing credential storage, I changed my desktop file |
It would be great! Like |
Since Electron 12.x, there is support for native Wayland through the use of these feature flags:
or using
--ozone-platform-hint=auto
. This is the way to avoid a badly-stretched blurry, and hardly-usable UI on HiDPI displays. HiDPI Wayland users usually run VSCode, Chromium itself, and other popular Electron apps like so.Passing those arguments to Compass on a Fedora 37, Gnome 4.32 desktop using:
Compass crashes with:
I wonder how we could safely pass native wayland feature flags down to Electron and Chromium? It's definitely not a pleasure to use Compass in XWayland. Passing
--ignore-additional-command-line-flags
did not help.The text was updated successfully, but these errors were encountered: