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

X11 applications in Wayland cannot be run in VSCodium #317

Open
NetDwarf opened this issue Mar 8, 2024 · 6 comments
Open

X11 applications in Wayland cannot be run in VSCodium #317

NetDwarf opened this issue Mar 8, 2024 · 6 comments
Assignees

Comments

@NetDwarf
Copy link

NetDwarf commented Mar 8, 2024

I just upgraded and X11 (GUI) applications (Avalonia UI specifically) fail to start with the following error:

Unhandled exception. System.Exception: XOpenDisplay failed

The error happens under Wayland, when starting an X11 application in VSCodium. It was introduced with #300 and is fixed by this.

The issue is mostly the assumption in #300 that nosocket=waylaynd is not needed and the wording in the README:

If you have problems to start this flatpak under X11 please run one of these two commands and try again

As it happens under Wayland as well.

@noonsleeper noonsleeper self-assigned this Mar 8, 2024
@noonsleeper
Copy link
Collaborator

Hi @NetDwarf, can you elaborate more about your problem?

@NetDwarf
Copy link
Author

Hi @NetDwarf, can you elaborate more about your problem?

I am not sure what to elaborate on. I am in Wayland and compile/open an Avalonia GUI application (X11). This fails since #300 (VSCodium running on Wayland by default instead of X11). It's not unexpected, but the README should be updated accordingly to warn Wayland users.

@noonsleeper
Copy link
Collaborator

#300 is about nosocket=x11 that was rejected by the flathub admins not about wayland.

Maybe will be good if you add some steps to reproduce this issue.

@NetDwarf
Copy link
Author

NetDwarf commented Mar 17, 2024

I am wrong. It was #298 . To reproduce:

1.) Run Wayland (Gnome in my case)
2.) Download VSCodium
3.) Start an X11 application from within VSCodium

Result: App crashes, because of no display.

Again, this is expected, but the README should reflect that.

@noonsleeper
Copy link
Collaborator

@NetDwarf, now is more clear. Can you make that changes on the README and make a PR?

@NetDwarf
Copy link
Author

It seems there is actually a direct mitigation without user interaction. Disabling fallback-x11 actually fixes the problem as in #322

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

No branches or pull requests

2 participants