Many X clients break when only the pathname socket is available #10

Open
opened 2025-09-02 20:38:17 +09:00 by ophestra · 0 comments
Owner

During testing for #1 it appears that X clients refuse to use the pathname socket with DISPLAY=:0, and the unix: syntax appeared to have fixed it. That however turns out to be untrue for many clients due to implementation-specific behaviour or bugs.

Programs like Steam and Vial straight up refuse to connect, while MikroTik WinBox somehow works perfectly fine despite also using the qt framework. The silliest failure comes, as expected, from GNU, where the toolkit supports the pathname socket correctly, and the main UI works perfectly fine, however the code responsible for starting the export dialogue somehow turns unix:/tmp/.X11-unix/X0 into unix:/tmp/.0, preventing images from being exported.

Currently, acb6931f3e works around these regressions by allowing individual apps to revert to the abstract socket.

During testing for https://git.gensokyo.uk/security/hakurei/pulls/1 it appears that X clients refuse to use the pathname socket with `DISPLAY=:0`, and the `unix:` syntax appeared to have fixed it. That however turns out to be untrue for many clients due to implementation-specific behaviour or bugs. Programs like [Steam](https://steampowered.com/) and [Vial](https://get.vial.today/) straight up refuse to connect, while MikroTik WinBox somehow works perfectly fine despite also using the qt framework. The silliest failure comes, as expected, from [GNU](https://www.gimp.org/), where the toolkit supports the pathname socket correctly, and the main UI works perfectly fine, however the code responsible for starting the export dialogue somehow turns `unix:/tmp/.X11-unix/X0` into `unix:/tmp/.0`, preventing images from being exported. Currently, https://git.gensokyo.uk/security/hakurei/commit/acb6931f3e4af62f92dc2ef85ef7c1ac9f7867e4 works around these regressions by allowing individual apps to revert to the abstract socket.
ophestra added the
help wanted
enhancement
labels 2025-09-02 20:38:17 +09:00
ophestra added
help wanted
and removed
help wanted
labels 2025-09-29 06:46:19 +09:00
Sign in to join this conversation.
No description provided.