mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-08 22:16:10 -04:00
run: Handle X11 over local abstract or TCP sockets
If the filesystem-backed Unix socket (G_UNIX_SOCKET_ADDRESS_PATH) does not exist, X11 clients can also use a Linux abstract Unix socket (G_UNIX_SOCKET_ADDRESS_ABSTRACT), or even a TCP socket. Both of these are going to require --share=network to be enabled, so print a warning if it isn't. We don't automatically enable --share=network, because that elevates the privileges of apps that would otherwise have entered a new network namespace, but users can make it work with `flatpak run --share=network` or `flatpak override --share=network`. When falling back to an abstract Unix socket or to a TCP socket, we can't remap the display number to the fixed :99.0 that we normally use, so adjust write_xauth() to be able to avoid doing that. Resolves: https://github.com/flatpak/flatpak/issues/4702 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f