We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d652511 commit b3c1ddbCopy full SHA for b3c1ddb
etc/scripts/vncserver/startvnc.sh
@@ -19,15 +19,18 @@ fi
19
20
if [ -f /tmp/.X11-unix/X${port} ]; then
21
vnc=true
22
-elif [ -f /tmp/.X${port}-lock ]; then
23
- vnc=true
24
else
25
vnc=false
26
fi
27
+if [ -f /tmp/.X${port}-lock ]; then
+ vnc=true
28
+else
29
+ vnc=false
30
+fi
31
32
if ! $vnc; then
- vncserver -xstartup "${DEFAULT_XSTARTUP}" -desktop "udroid Default VNC" :${port}
33
+ vncserver -xstartup "${DEFAULT_XSTARTUP}" -localhost no -desktop "udroid Default VNC" :${port}
34
35
echo "A vncserver lock is found for port ${port}"
36
echo -e "Use \e[1;32mudroid stoptvnc\e[0m or \e[1;32mstopvnc\e[0m to stop it and try again..."
0 commit comments