diff --git a/src/common/scripts/vnc_startup.sh b/src/common/scripts/vnc_startup.sh index 780adf3d..1fccc808 100755 --- a/src/common/scripts/vnc_startup.sh +++ b/src/common/scripts/vnc_startup.sh @@ -97,7 +97,7 @@ vncserver -kill $DISPLAY &> $STARTUPDIR/vnc_startup.log \ echo -e "start vncserver with param: VNC_COL_DEPTH=$VNC_COL_DEPTH, VNC_RESOLUTION=$VNC_RESOLUTION\n..." -vnc_cmd="vncserver $DISPLAY -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION PasswordFile=$HOME/.vnc/passwd" +vnc_cmd="vncserver $DISPLAY -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION PasswordFile=$HOME/.vnc/passwd -xstartup $HOME/wm_startup.sh" if [[ ${VNC_PASSWORDLESS:-} == "true" ]]; then vnc_cmd="${vnc_cmd} -SecurityTypes None --I-KNOW-THIS-IS-INSECURE" fi @@ -105,9 +105,6 @@ fi if [[ $DEBUG == true ]]; then echo "$vnc_cmd"; fi $vnc_cmd > $STARTUPDIR/no_vnc_startup.log 2>&1 -echo -e "start window manager\n..." -$HOME/wm_startup.sh &> $STARTUPDIR/wm_startup.log - ## log connect options echo -e "\n\n------------------ VNC environment started ------------------" echo -e "\nVNCSERVER started on DISPLAY= $DISPLAY \n\t=> connect via VNC viewer with $VNC_IP:$VNC_PORT" diff --git a/src/common/xfce/wm_startup.sh b/src/common/xfce/wm_startup.sh index d0fd552d..f2ed4783 100755 --- a/src/common/xfce/wm_startup.sh +++ b/src/common/xfce/wm_startup.sh @@ -9,6 +9,4 @@ xset -dpms & xset s noblank & xset s off & -/usr/bin/startxfce4 --replace > $HOME/wm.log & -sleep 1 -cat $HOME/wm.log \ No newline at end of file +/usr/bin/startxfce4 --replace