<br><tt><font size=2>nxserver does a check for rdesktop/nxdesktop . . .</font></tt>
<br>
<br><tt><font size=2>if "$ENABLE_EXTERNAL_NXDESKTOP" = "1"
-a "$(getparam type)" = "windows"</font></tt>
<br><tt><font size=2>ie.</font></tt>
<br><tt><font size=2>if rdesktop is selected AND it's a windows session
then . . .</font></tt>
<br>
<br><tt><font size=2> type="windows-helper"</font></tt>
<br>
<br><tt><font size=2>and changes type to windows-helper</font></tt>
<br>
<br><tt><font size=2>BUT then nxserver also changes CMDLINE in an unfortunate</font></tt>
<br><tt><font size=2>manner. .</font></tt>
<br>
<br><tt><font size=2> PARAMS="$PARAMS&type=$type"</font></tt>
<br><tt><font size=2> CMDLINE=$PARAMS</font></tt>
<br>
<br><tt><font size=2>ie. it ADDS</font></tt>
<br>
<br><tt><font size=2> &type=windows-helper</font></tt>
<br>
<br><tt><font size=2>on to the end of CMDLINE and passes it on to nxnode.</font></tt>
<br>
<br><tt><font size=2>That is to say CMDLINE now looks like</font></tt>
<br>
<br><tt><font size=2>&link=isdn. .&type=windows. . .&type=windows-helper&freenx_export_agents=1</font></tt>
<br>
<br><tt><font size=2>now containg TWO &type= entries</font></tt>
<br>
<br><tt><font size=2>THEN</font></tt>
<br>
<br><tt><font size=2>nxnode runs</font></tt>
<br>
<br><tt><font size=2> getparam type</font></tt>
<br>
<br><tt><font size=2>on CMDLINE and hopes to get the last value of type=</font></tt>
<br><tt><font size=2>to decide what to launch.</font></tt>
<br>
<br><tt><font size=2>Well PREVIOUSLY this all worked out fine because</font></tt>
<br><tt><font size=2>the previous version of getparam printed windows-helper</font></tt>
<br><tt><font size=2>ie. the final occurence of type=</font></tt>
<br>
<br><tt><font size=2>HOWEVER a patch in nxnode replaced getparam with</font></tt>
<br><tt><font size=2>a python script which prints the</font></tt>
<br>
<br><tt><font size=2> FIRST occurance
of type=</font></tt>
<br>
<br><tt><font size=2>ie. it still outputs windows instead of windows-helper!!</font></tt>
<br>
<br><tt><font size=2>nxnode then tries to run the non existent nxdesktop
helper</font></tt>
<br><tt><font size=2>and can't find it</font></tt>
<br>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Quick-bodge for anyone waiting . . . .</font></tt>
<br>
<br>
<br>
<br><font size=2 face="Courier">diff -u nxserver.000 nxserver</font>
<br><font size=2 face="Courier">--- nxserver.000 2011-05-22
16:48:59.000000000 +0100
</font>
<br><font size=2 face="Courier">+++ nxserver 2011-08-03 18:49:46.699813042
+0100
</font>
<br><font size=2 face="Courier">@@ -1392,7 +1392,8 @@
</font>
<br><font size=2 face="Courier">
if [ "$ENABLE_EXTERNAL_NXDESKTOP" = "1"
-a "$(getparam type)" = "windows" ]
</font>
<br><font size=2 face="Courier">
then</font>
<br><font size=2 face="Courier">
type="windows-helper"</font>
<br><font size=2 face="Courier">-
PARAMS="$PARAMS&type=$type&freenx_export_agents=1"</font>
<br><font size=2 face="Courier">+
PARAMS=$(echo $PARAMS|sed "s/type=windows/type=windows-helper/g")</font>
<br><font size=2 face="Courier">+
PARAMS="$PARAMS&freenx_export_agents=1"</font>
<br><font size=2 face="Courier">
CMDLINE=$PARAMS</font>
<br><font size=2 face="Courier">
fi</font>
<br>