Force local transport when using the launchd socket.

Fixes a regression due to
bf53987eaf
This commit is contained in:
Jeremy Huddleston 2008-11-17 20:47:26 -08:00
parent 7aca689ce1
commit 5e68e94d85

View file

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