Annotation of /trunk/nxserver-freenx/patches/nxserver-freenx-0.7.1-nxdialog.patch
Parent Directory | Revision Log
Revision 399 -
(hide annotations)
(download)
Tue Nov 6 22:53:47 2007 UTC (16 years, 10 months ago) by niro
File size: 925 byte(s)
Tue Nov 6 22:53:47 2007 UTC (16 years, 10 months ago) by niro
File size: 925 byte(s)
-nxdialog fix
1 | niro | 399 | Index: nxdialog |
2 | =================================================================== | ||
3 | --- nxdialog (révision 405) | ||
4 | +++ nxdialog (révision 413) | ||
5 | @@ -26,6 +26,7 @@ | ||
6 | done | ||
7 | } | ||
8 | |||
9 | +PARAMS=( "$@" ) | ||
10 | INPUTS=$(requote "$@") #JJK: Save input parameter line... | ||
11 | |||
12 | TEMP=`getopt -a -o d: --long local,noautokill,dialog:,caption:,message:,display:,printer:,parent: -n $(basename $0) -- "$@"` | ||
13 | @@ -71,10 +72,13 @@ | ||
14 | # client does not like large databases like used when ENABLE_FOOMATIC=1. | ||
15 | # | ||
16 | # This seems to be because the used sorting algorithm scales in O(n^2). | ||
17 | +# | ||
18 | +# This is now fixed in NXClient 3.0.0, but still people sometimes use | ||
19 | +# older clients. | ||
20 | |||
21 | NXCLIENT="/usr/NX/bin/nxclient" | ||
22 | [ -x "$NXCLIENT" -a "$DIALOG_TYPE" != "printer" -a "$(file -bi $NXCLIENT)" != 'application/x-shellscript' ] \ | ||
23 | - && exec ${NXCLIENT} "$@" | ||
24 | + && exec ${NXCLIENT} "${PARAMS[@]}" | ||
25 | |||
26 | # FIXME: This should be COMMAND_XDIALOG, ... | ||
27 | if [ -x /usr/bin/Xdialog ] |