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]);