Contents of /trunk/nxserver-freenx/patches/nxserver-freenx-0.7.1-vnc-startup-fix.patch
Parent Directory | Revision Log
Revision 400 -
(show annotations)
(download)
Tue Nov 6 23:08:12 2007 UTC (16 years, 10 months ago) by niro
File size: 450 byte(s)
Tue Nov 6 23:08:12 2007 UTC (16 years, 10 months ago) by niro
File size: 450 byte(s)
-fixed wrong vnc session if client is installed on server
1 | --- nxserver~ 2007-10-15 00:25:14.000000000 +0200 |
2 | +++ nxserver 2007-10-22 07:17:46.000000000 +0200 |
3 | @@ -267,7 +267,7 @@ |
4 | egrep -q "^userName=$1$" $i && let SESSION_COUNT_USER=$SESSION_COUNT_USER+1 |
5 | done |
6 | |
7 | - if [ "$ENABLE_DESKTOP_SHARING" = "1" ] |
8 | + if [ "$4" = "vnc" -a "$ENABLE_DESKTOP_SHARING" = "1" ] |
9 | then |
10 | export DESKTOP_SHARING_IDS="" |
11 | for i in $(LC_ALL=C netstat -ln --protocol=unix | egrep 'X11-unix/X[0-9]$' | sed 's/.*X\(.*\)/\1/g') |