Skip to content

Commit 386b80f

Browse files
Start window manager as xstartup via vncserver
1 parent 34de458 commit 386b80f

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/common/scripts/vnc_startup.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,14 @@ vncserver -kill $DISPLAY &> $STARTUPDIR/vnc_startup.log \
9797

9898
echo -e "start vncserver with param: VNC_COL_DEPTH=$VNC_COL_DEPTH, VNC_RESOLUTION=$VNC_RESOLUTION\n..."
9999

100-
vnc_cmd="vncserver $DISPLAY -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION PasswordFile=$HOME/.vnc/passwd"
100+
vnc_cmd="vncserver $DISPLAY -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION PasswordFile=$HOME/.vnc/passwd -xstartup $HOME/wm_startup.sh"
101101
if [[ ${VNC_PASSWORDLESS:-} == "true" ]]; then
102102
vnc_cmd="${vnc_cmd} -SecurityTypes None --I-KNOW-THIS-IS-INSECURE"
103103
fi
104104

105105
if [[ $DEBUG == true ]]; then echo "$vnc_cmd"; fi
106106
$vnc_cmd > $STARTUPDIR/no_vnc_startup.log 2>&1
107107

108-
echo -e "start window manager\n..."
109-
$HOME/wm_startup.sh &> $STARTUPDIR/wm_startup.log
110-
111108
## log connect options
112109
echo -e "\n\n------------------ VNC environment started ------------------"
113110
echo -e "\nVNCSERVER started on DISPLAY= $DISPLAY \n\t=> connect via VNC viewer with $VNC_IP:$VNC_PORT"

src/common/xfce/wm_startup.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ xset -dpms &
99
xset s noblank &
1010
xset s off &
1111

12-
/usr/bin/startxfce4 --replace > $HOME/wm.log &
13-
sleep 1
14-
cat $HOME/wm.log
12+
/usr/bin/startxfce4 --replace > $HOME/wm.log

0 commit comments

Comments
 (0)