<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 06/12/2012 10:23:06:<br>
<br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
> <br>
> Hi<br>
> <br>
> I have found an issue in the freenx implementation that I think might<br>
> be a bug:<br>
> <br>
> When using freenx to connect to a Windows terminalserver I always
got<br>
> an error from that, saying that it couldn't find a program named<br>
> /usr/bin/nxdesktop_helper and the user was logged out immediately,<br>
> whereas connecting to a normal Windows workstation worked fine.<br>
</font></tt>
<br><tt><font size=2>Hmmmmmm</font></tt>
<br>
<br><tt><font size=2>That shouldn't happen, because if windows_app</font></tt>
<br><tt><font size=2>is set to nxdesktop_helper then is should be
blanked or</font></tt>
<br><tt><font size=2>ignored</font></tt>
<br>
<br><tt><font size=2>eg</font></tt>
<br>
<br><tt><font size=2>My version of nxdesktop_helper has (had actually)
(sic) :-</font></tt>
<br>
<br><tt><font size=2># windows_app is brocken - bug.</font></tt>
<br><tt><font size=2>[ "$windows_app" = "/usr/bin/nxdesktop_helper"
] && windows_app=""</font></tt>
<br>
<br><tt><font size=2> rdesktop . . .
-s "" a.b.c.d</font></tt>
<br>
<br><tt><font size=2>doesn't complain about the blank -s switch value.</font></tt>
<br>
<br>
<br><tt><font size=2>The Ubuntuers remove the -s switch completetly in
theirs</font></tt>
<br><tt><font size=2>which is better.</font></tt>
<br>
<br>
<br><tt><font size=2>so</font></tt>
<br>
<br><tt><font size=2>???? what's in your nxdesktop helper ???</font></tt>
<br>
<br><tt><font size=2>??? what is your distro and rpm etc version ???</font></tt>
<br>
<br>
<br><tt><font size=2>A certain amount of patching is necessary in some
distros</font></tt>
<br><tt><font size=2>to get the application entered in</font></tt>
<br><tt><font size=2> "Run application"
in "Session Type" </font></tt>
<br><tt><font size=2>in nxclient "windows setting" to actually
be passed</font></tt>
<br><tt><font size=2>to rdesktop.</font></tt>
<br>
<br>
<br>
<br>
<br><tt><font size=2>> <br>
> After some digging I came up with the following line in the script<br>
> /usr/bin/nxdesktop_helper on the freenx server:<br>
> <br>
> set -- -u "$agent_user" -k "$agent_keyboard" -d
"$agent_domain" -f -s<br>
> "$windows_app" $AGENT_EXTRA_OPTIONS_RDP "$agent_server"<br>
> <br>
> and the value of $windows_app apparently is<br>
> "/usr/bin/nxdesktop_helper", so the terminal server tries
to run the<br>
</font></tt>
<br>
<br><tt><font size=2>It always will be if you have an unpatched</font></tt>
<br>
<br><tt><font size=2> nxserver
/ nxnode</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>> said program on login and pathetically fails
to do so... voilà the<br>
> user is immediately logged out.<br>
> <br>
> As a workaround I just deleted the '-s "$windows_app"' bit
in the<br>
> above line and connecting to my terminal server works fine:<br>
> <br>
> set -- -u "$agent_user" -k "$agent_keyboard" -d
"$agent_domain" -f<br>
> $AGENT_EXTRA_OPTIONS_RDP "$agent_server"<br>
> <br>
> <br>
> I fail to see though whether there are scenarios where the -s<br>
> parameter for rdesktop is actually useful?<br>
> (Trying to run '/usr/bin/nxdesktop_helper' on a windows machine<br>
> obviously isn't...)<br>
> <br>
> Regards<br>
> Tobias<br>
> <br>
> <br>
> <br>
> - --<br>
> Tobias Bäumlin / ID Gymnasium Neufeld / Bremgartenstrasse 133 / 3012
Bern<br>
> +41 31 635 30 46<br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.11 (GNU/Linux)<br>
> Comment: Using GnuPG with undefined - </font></tt><a href=http://www.enigmail.net/><tt><font size=2>http://www.enigmail.net/</font></tt></a><tt><font size=2><br>
> <br>
> iEYEARECAAYFAlDAcgoACgkQVwzN1zwEPJD0MwCfbF/xSC9Hn8IslepAPG0Wf9CH<br>
> x6wAnisHuVYFgvCqZgyp2vwMqUwnaYDE<br>
> =fNdR<br>
> -----END PGP SIGNATURE-----<br>
</font></tt>