tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.3k stars 2.43k forks source link

[bug] Many tauri app start Xwayland even if they don't use it #4635

Closed ghost closed 1 year ago

ghost commented 2 years ago

Describe the bug

When i start some tauri app Xwayland is launched even it's not used, and it's drawing battery.

Reproduction

Start tauri app Try to mitigate by blocking flatpak X11 access Tauri app do not run anymore

Expected behavior

Taury app start since it work on wayland

Platform and versions

Report it myself since it's a bug on many tauri app (one is cinny).

See their issue : https://github.com/cinnyapp/cinny/issues/582

Stack trace

No response

Additional context

No response

Beanow commented 2 years ago

Right now X11 is being used and a dependency for Tauri. Using Xwayland is expected to work (with exception of global shortcuts), but wayland-only will not work until the sections needing X11have been rewritten.

That said, I daily drive a Wayland desktop so it's also on my wishlist to look into this.

amrbashir commented 1 year ago

This has been fixed in https://github.com/tauri-apps/tao/commit/27ab6f4dcef19c052b0434873e34b54447b70860