-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
[Bug]: Lock file of wayland socket is not passed through #5167
Comments
Regardless of whether this is solved by something like #5195 or not, it would be safer to create special-purpose compositors with a namespaced name so that they don't accidentally get used by normal applications. If you're running an X11 desktop environment, you presumably don't want ordinary GTK or Qt applications to see your special-purpose nested compositor create Gamescope is an example of a special-purpose compositor used to run games (its Wayland compositor intentionally doesn't have ordinary desktop-oriented interfaces, only the minimum that's required to run a full-screen Xwayland), and it uses |
It seems to be quite problematic as if I specify custom socket name, I will lose the library's logic to automatically detect the first free socket as I see only API to set socket name rather than socket namespace in QtWaylandCompositor. wayland-server doesn't seem to have anything like that either, wl_display_add_socket_auto doesn't accept a prefix. |
For the reason @smcv mentioned, I believe most Wayland compositors, special or not, intentionally do not use the But even then, if everyone skips |
Checklist
Flatpak version
1.14.0
What Linux distribution are you using?
NixOS
Linux distribution version
22.11.19700101
What architecture are you using?
x86_64
How to reproduce
tdesktop uses QtWaylandCompositor to create a nested compositor for web bots, the library checks lock files to find a free socket name, but flatpak doesn't passes through the lock (i.e. wayland-0, but not wayland-0.lock). QtWaylandCompositor thus assumes the socket is free and tries to listen it, crashing the application and preventing all subsequent launch of the application
Expected Behavior
flatpak passes through both the socket and associated lock file
Actual Behavior
flatpak passes through only the socket
Additional Information
No response
The text was updated successfully, but these errors were encountered: