Comments (6)
@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:
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
I hope I'll find the time to look into this closer.
from compass.
I ended up using the rpm
package instead of flatpak. Like this:
mongodb-compass --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --ignore-additional-command-line-flags
from compass.
@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?
from compass.
Thanks for your input @ahmafi. I ended up ditching fractional scaling to address my issues. With 200% scaling, things are vivid again.
from compass.
the flatpak
route did not help me unfortunately as I just got different critical GPU errors:
flatpak run com.mongodb.Compass --enable-features=UseOzonePlatform --ozone-platform=wayland
flatpak run com.mongodb.Compass --enable-features=UseOzonePlatform --ozone-platform=wayland
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/userhome/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
[3:0219/120110.383040:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:0219/120110.553187:ERROR:wayland_connection.cc(193)] Failed to connect to Wayland display: No such file or directory (2)
[3:0219/120110.553201:ERROR:ozone_platform_wayland.cc(259)] Failed to initialize Wayland platform
[3:0219/120110.553209:ERROR:env.cc(257)] The platform failed to initialize. Exiting.
/app/bin/run.sh: line 2: 3 Segmentation fault (core dumped) zypak-wrapper '/app/main/MongoDB Compass' "$@"
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.
yay -Syu mongodb-compass mongodb-compass --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --ignore-additional-command-line-flags
Also this is very specific to my distro most likely but I was missing a backend for Manjaro Sway:
sudo pacman -Syu xdg-desktop-portal-gtk
sudo pacman -Syu xdg-desktop-portal-wlr
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.
from compass.
It would be great if the app also respected $XDG_CONFIG_HOME/electron-flags.conf
options.
from compass.
Related Issues (20)
- Fields missing when exporting collection HOT 8
- Please implement multiselection HOT 1
- Feature Request HOT 1
- Bug Report: document/index count not updated when clicking on collection tab HOT 8
- Compass does not save favorites on WSL HOT 2
- Increase "import document" editor focus size
- Feature Request: Allow custom id generators to be used on duplication of documents HOT 1
- Feature Request: Add simplified parallel insertion command syntax HOT 2
- Bug Report | cannot query using big int HOT 2
- A full stop at the ending of the line HOT 1
- Bug Report: Loading connections not working properly HOT 5
- Feature Request: Color Picker on Favorite save HOT 3
- Fatal bug: The brain of your teams hot-key designer HOT 1
- Bug Report - In filter, not possible to get cursor between 2 spaces with arrow keys (on osx)?? HOT 2
- Bug Report - MacOS newest versions are broken HOT 10
- Bug Report - The latest version of Macos and Windows is stuck when importing large CSV files, and the program interface is white. HOT 6
- Rant : Using _id ObjectID as direct filter instead of {_id: ObjectID} HOT 1
- Bug Report Can't delete collection with specific name HOT 4
- "ssh2" module in ssh-tunnel package is obsolete, please consider upgrade HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compass.