commit ec4c64946e7d654d6b94ccb6d7ce5fa8ce8aab81
Author: Vagrant Cascadian <vagrant@debian.org>
Date:   Thu Sep 11 14:27:56 2014 -0500

    Fix typo: conditionally enable "-nolisten tcp" based on LDM_DIRECTX.

commit 4ba110920fe51367ee7f205b612e348e12cbaf88
Author: Vagrant Cascadian <vagrant@debian.org>
Date:   Wed Sep 10 22:52:09 2014 -0500

    Disable listening on tcp, unless using LDM_DIRECTX. Thanks to Denis
    Croombs for reporting the issue!

commit 90956b7b75fc6a3b9241c82895a75688e8b7acb8
Author: Vagrant Cascadian <vagrant@debian.org>
Date:   Wed Sep 10 22:43:39 2014 -0500

    Remove support for running without xinitrc.

diff --git a/screen.d/ldm b/screen.d/ldm
index 72e43c6..827ffdf 100755
--- a/screen.d/ldm
+++ b/screen.d/ldm
@@ -127,8 +127,10 @@ if [ -z "${LDM_XSESSION}" ]; then        # If admin hasn't specified session
     done
 fi
 
-if [ -x /usr/share/ltsp/xinitrc ]; then
-    xinitrc=/usr/share/ltsp/xinitrc
+if ! boolean_is_true "$LDM_DIRECTX" ; then
+    X_ARGS="-nolisten tcp $X_ARGS"
 fi
 
+xinitrc=/usr/share/ltsp/xinitrc
+
 exec xinit $xinitrc /usr/sbin/ldm -- ${DISPLAY} vt${TTY} -auth ${XAUTHORITY} ${X_ARGS} -br >/dev/null 2>&1
