Skip to content
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

[feat] Add a way to launch app in wayland window or improve documentation for doing so #4915

Closed
skewballfox opened this issue Aug 11, 2022 · 2 comments · Fixed by spyglass-search/spyglass#351

Comments

@skewballfox
Copy link

Describe the problem

There should be some way for a user to launch an application in a wayland window, something similar to electron's --enable-features=UseOzonePlatform --ozone-platform=wayland.

it seems it used to be doable via --WINIT_UNIX_BACKEND=wayland but, at least according to one of the developers using tauri that was removed.

This may be something that is currently possible in tauri, but when I was looking a few days ago (both in documentation and issues in tauri apps) I couldn't find any reference to how.

Describe the solution you'd like

A command line flag to explicitly launch a tauri application as a wayland session, or add a section or subsection to the documentation for it.

Alternatives considered

I mean there isn't one really, you can try to autodetect a running wayland session, but I can almost guarantee it will likely fail in some situation (probably on some users custom sway setup) and there will need to be some way to override the autodetection.

Additional context

While I understand that certain things might be broken on wayland such as global shortcuts(though that's broken regardless of the window type), it should be up to the user whether or not to embrace the suck. believe it or not, it's still the less sucky option

@amrbashir
Copy link
Member

the globalShortcuts has been disabled on wayland in tauri-apps/tao#543, so once that PR lands in tauri, there shouldn't be a problem to run on wayland.

@skewballfox
Copy link
Author

This isn't actually an issue with running on wayland, I was more hoping for something similar to what is provided with electron with the flags --enabledfeatures=UseOzonePlatform --ozone-platform=wayland, though a config option or an env variable would work. It may already exist, and just needs to be documented. Often x apps are broken on wlroots (at least with Nvidia), and Some applications will refuse to work if these aren't supplied (discord, at one point signal).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants