From 7cb4d37b3e318710d40200af117bee88357abc68 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Thu, 15 Dec 2022 13:21:38 -0500 Subject: [PATCH] Revert "client-conf: Avoid loading X11 properties unless SSH_CONNECTION is set" Not every remote connection is SSH. This reverts commit 79a8efb45cb8304967baa2e8c6d6156478ce19d9. Fixes https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1412 --- src/pulse/client-conf-x11.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pulse/client-conf-x11.c b/src/pulse/client-conf-x11.c index e0c985e80..60c645ee7 100644 --- a/src/pulse/client-conf-x11.c +++ b/src/pulse/client-conf-x11.c @@ -43,14 +43,6 @@ int pa_client_conf_from_x11(pa_client_conf *c) { pa_assert(c); - /* Local connections will have configuration and X root window - * properties match 1:1, these paths are only strictly necessary - * for remote clients, so check for SSH_CONNECTION to make sure - * this is a remote session with X forwarding. - */ - if (!getenv("SSH_CONNECTION")) - goto finish; - if (!(dname = getenv("DISPLAY"))) goto finish;