Index: nxdialog =================================================================== --- nxdialog (révision 405) +++ nxdialog (révision 413) @@ -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) -- "$@"` @@ -71,10 +72,13 @@ # client does not like large databases like used when ENABLE_FOOMATIC=1. # # This seems to be because the used sorting algorithm scales in O(n^2). +# +# This is now fixed in NXClient 3.0.0, but still people sometimes use +# older clients. NXCLIENT="/usr/NX/bin/nxclient" [ -x "$NXCLIENT" -a "$DIALOG_TYPE" != "printer" -a "$(file -bi $NXCLIENT)" != 'application/x-shellscript' ] \ - && exec ${NXCLIENT} "$@" + && exec ${NXCLIENT} "${PARAMS[@]}" # FIXME: This should be COMMAND_XDIALOG, ... if [ -x /usr/bin/Xdialog ]