diff options
Diffstat (limited to 'dot/local/bin/xvnc')
-rwxr-xr-x | dot/local/bin/xvnc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dot/local/bin/xvnc b/dot/local/bin/xvnc index 2984aa7..a3efb2f 100755 --- a/dot/local/bin/xvnc +++ b/dot/local/bin/xvnc | |||
@@ -27,7 +27,10 @@ direct_connection() | |||
27 | "$remote_host" \ | 27 | "$remote_host" \ |
28 | "x11vnc -noxrecord -q -nopw -ncache -ncache_cr -display $local_display -unixsock $remote_socket_file -rfbport 0" & | 28 | "x11vnc -noxrecord -q -nopw -ncache -ncache_cr -display $local_display -unixsock $remote_socket_file -rfbport 0" & |
29 | X11VNC=$! | 29 | X11VNC=$! |
30 | sleep 1 | 30 | while ! [ -e "$local_socket_file" ] |
31 | do | ||
32 | sleep 0.3 | ||
33 | done | ||
31 | xtigervncviewer "$local_socket_file" | 34 | xtigervncviewer "$local_socket_file" |
32 | kill $X11VNC | 35 | kill $X11VNC |
33 | } | 36 | } |