--- freenx-0.6.0/nxnode 2007-05-21 14:19:57.000000000 +0200 +++ freenx-0.6.0/nxnode.fixed 2007-05-21 17:04:54.000000000 +0200 @@ -300,7 +300,7 @@ if [ "$virtualdesktop" = "1" -a "$type" = "unix-application" -a "$DEFAULT_X_WM" != "" -a -x "$(find_app $DEFAULT_X_WM)" ] then - DISPLAY=unix:$display $DEFAULT_X_WM >>"$USER_FAKE_HOME/.nx/C-$sess_id/session" 2>&1 & + DISPLAY=localhost:$display $DEFAULT_X_WM >>"$USER_FAKE_HOME/.nx/C-$sess_id/session" 2>&1 & NODE_WM_PID=$! fi @@ -308,7 +308,7 @@ # Startup the application # - DISPLAY=unix:$display $NODE_APPLICATION >>"$USER_FAKE_HOME/.nx/C-$sess_id/session" 2>&1 & + DISPLAY=localhost:$display $NODE_APPLICATION >>"$USER_FAKE_HOME/.nx/C-$sess_id/session" 2>&1 & NODE_APP_PID=$! mkdir -p "$USER_FAKE_HOME/.nx/C-$sess_id/pids/" @@ -1131,7 +1131,7 @@ then sess_id="$SERVER_NAME-$display-$uniqueid" # go into background immediately - NXSESSIONID="$sess_id" DISPLAY=unix:$display "$NODE_AUTOSTART" "$1" >/dev/null 2>&1 & + NXSESSIONID="$sess_id" DISPLAY=localhost:$display "$NODE_AUTOSTART" "$1" >/dev/null 2>&1 & # dont't wait for this child! disown $! fi