YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
3.77k stars 113 forks source link

Some applications won't launch #358

Closed amatsagu closed 5 months ago

amatsagu commented 5 months ago

System Information

Info

Hey, I'm just trying out Niri (I really like scrolling concept). I've successfully completed and copied files to correct places following building guide. I've tried launching few apps that I use and some of them work and some don't:

Apps that work fine:

Apps that fails to launch? (never spawn window)

I normally use Sway for everyday work and all higher listed apps works just fine there. I assume they just miss something during initialization but idk, I'm not too knowledgeable with Wayland. I hope this report will help finding some bugs.

Edit: No clue if it's helpful but I ended session (Super + Shift + E) and niri produced it seems only normal logs, there were no warnings or errors.

songww commented 5 months ago

Gimp works with Xwayland/xwayland-satellite/gamescope on my machine, but not cage. Boxes works fine.

I don't have any other apps.

lpnh commented 5 months ago

There's a useful section on the Wiki discussing X11 applications. In addition, you can try the following flags to run Electron-based apps: --ozone-platform-hint=auto and --enable-features=WaylandWindowDecorations, or --ozone-platform=wayland if the previous two don't work.

YaLTeR commented 5 months ago

Hey, yeah, it probably mostly comes down to some apps requiring Xwayland. Some apps even don't really need Xwayland, but still call into it at the moment, so you may get away with spawning an Xwayland instance and giving the app both WAYLAND_DISPLAY and DISPLAY.

Also, GIMP beta is Wayland-native so it works fine, and Boxes works fine here too. The official MC client I run inside rootful Xwayland.

Closing because this isn't really a niri issue; feel free to keep discussing (or to ask on our Matrix).