Add support for vnc_connect feature (#877) formorer/vnc_connect
authorAlexander Wirt <formorer@debian.org>
Sun, 7 Nov 2010 19:28:54 +0000 (20:28 +0100)
committerAlexander Wirt <formorer@debian.org>
Sun, 7 Nov 2010 19:28:54 +0000 (20:28 +0100)
etc/skel/.xinitrc.d/grml_vnc

index eff5a40..1962179 100755 (executable)
@@ -12,8 +12,9 @@ fi
 
 # if the vnc bootoption sets up the password let's start the vnc server
 if [ -e $HOME/.vnc/passwd ]; then
+   test -f $HOME/.vnc/options && OPTIONS=$(cat $HOME/.vnc/options)
    /usr/bin/x11vnc -bg -forever -noxdamage -o $HOME/.vnc/x11vnc.log -rfbauth \
-                   $HOME/.vnc/passwd -auth $HOME/.Xauthority -display $DISPLAY
+                   $HOME/.vnc/passwd -auth $HOME/.Xauthority -display $DISPLAY $OPTIONS
 fi
 
 ## END OF FILE #################################################################