[FreeNX-kNX] NX 0.7.1: nxdialog fix now working and in SVN

Fabian Franz FabianFranz at gmx.de
Tue Oct 30 15:33:40 UTC 2007


Heya, I can't find the original mail to respond to, so I respond here :-):

The nxdialog fix to spawn the commercial client with the right arguments is now working. The new fix (against the old fix) is:


Index: nxdialog
===================================================================
--- nxdialog    (Revision 412)
+++ nxdialog    (Arbeitskopie)
@@ -26,6 +26,7 @@
        done
 }

+PARAMS=( "$@" )
 INPUTS=$(requote "$@") #JJK: Save input parameter line...

 TEMP=`getopt -a -o d: --long local,noautokill,dialog:,caption:,message:,display:,printer:,parent: -n $(basename $0) -- "$@"`
@@ -77,7 +78,7 @@

 NXCLIENT="/usr/NX/bin/nxclient"
 [ -x "$NXCLIENT" -a "$DIALOG_TYPE" != "printer" -a "$(file -bi $NXCLIENT)" != 'application/x-shellscript' ] \
-       && exec ${NXCLIENT} $INPUTS
+       && exec ${NXCLIENT} "${PARAMS[@]}"

 # FIXME: This should be COMMAND_XDIALOG, ...
 if [ -x /usr/bin/Xdialog ]

Have fun,

cu

Fabian

PS: This time I even tested it ;-). Thx.



More information about the FreeNX-kNX mailing list