diff --git a/src/common/startup_scripts/vnc_startup.sh b/src/common/startup_scripts/vnc_startup.sh index ce92658..ed83486 100644 --- a/src/common/startup_scripts/vnc_startup.sh +++ b/src/common/startup_scripts/vnc_startup.sh @@ -57,7 +57,7 @@ function start_kasmvnc (){ rm -rf $HOME/.vnc/*.pid - vncserver $DISPLAY -depth 24 -geometry $VNC_RESOLUTION -websocketPort $NO_VNC_PORT -cert ${HOME}/.vnc/self.pem -httpd ${KASM_VNC_PATH}/www -sslOnly -FrameRate=$MAX_FRAME_RATE -interface 0.0.0.0 $VNCOPTIONS + vncserver $DISPLAY -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION -websocketPort $NO_VNC_PORT -cert ${HOME}/.vnc/self.pem -httpd ${KASM_VNC_PATH}/www -sslOnly -FrameRate=$MAX_FRAME_RATE -interface 0.0.0.0 $VNCOPTIONS KASM_PROCS['kasmvnc']=$(cat $HOME/.vnc/*${DISPLAY_NUM}.pid) diff --git a/src/common/xfce/window_manager_startup.sh b/src/common/xfce/window_manager_startup.sh index 54a19d1..26e946d 100644 --- a/src/common/xfce/window_manager_startup.sh +++ b/src/common/xfce/window_manager_startup.sh @@ -3,11 +3,6 @@ set -e echo -e "\n------------------ Xfce4 window manager startup------------------" -### disable screen saver and power management -xset -dpms & -xset s noblank & -xset s off & - if [ "${START_XFCE4}" == "1" ] ; then echo "Starting XFCE" diff --git a/src/ubuntu/install/xfce/install_xfce_ui.sh b/src/ubuntu/install/xfce/install_xfce_ui.sh index 9352b70..1593c64 100644 --- a/src/ubuntu/install/xfce/install_xfce_ui.sh +++ b/src/ubuntu/install/xfce/install_xfce_ui.sh @@ -14,6 +14,32 @@ get_rid_of_xfce_battery_widget() { yum remove -y xfce4-power-manager } +config_xinit_disable_screensaver() { + mkdir -p /etc/X11/xinit/xinitrc.d/ + cat >/etc/X11/xinit/xinitrc.d/disable_screensaver.sh </etc/X11/xinit/xinitrc </usr/bin/xfce4-session-logout <>/etc/xdg/Thunar/accels.scm</ThunarLauncher/delete" "Delete") (gtk_accel_path "/ThunarLauncher/trash-delete-2" "") (gtk_accel_path "/ThunarLauncher/trash-delete" "") -EOL +EOL \ No newline at end of file