From 5e68e94d852c730ef9264fc0d8ca61a2ffe98b53 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 17 Nov 2008 20:47:26 -0800 Subject: [PATCH] Force local transport when using the launchd socket. Fixes a regression due to bf53987eaf0fbd7f7627783fc39e7ee99e8361ba --- src/ConnDis.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ConnDis.c b/src/ConnDis.c index f32b0925..0ecd71c3 100644 --- a/src/ConnDis.c +++ b/src/ConnDis.c @@ -298,10 +298,11 @@ _X11TransConnectDisplay ( } else #endif #ifdef HAVE_LAUNCHD - if (!phostname || phostname[0]=='/') -#else - if (!phostname) + if (phostname && phostname[0]=='/') { + pprotocol = copystring ("local", 5); + } #endif + if (!phostname) { if (local_transport[0] != NULL) { pprotocol = Xstrdup(local_transport[0]);