From bd144b71bf4d238bb346cbb81557fd3a632c0a05 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Sun, 18 Jul 2021 23:30:13 +1200 Subject: [PATCH] Easy start script: add manual xstartup choice --- builder/startup/deb/kasmvncserver-easy-start | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/builder/startup/deb/kasmvncserver-easy-start b/builder/startup/deb/kasmvncserver-easy-start index 1db47ab..d1c54c1 100755 --- a/builder/startup/deb/kasmvncserver-easy-start +++ b/builder/startup/deb/kasmvncserver-easy-start @@ -7,13 +7,15 @@ interface=0.0.0.0 cert_group=ssl-cert xstartup_script=~/.vnc/xstartup +manual_xstartup_choice="Manually edit xstartup" declare -A all_desktop_environments=( [Cinnamon]=cinnamon-session [Mate]="XDG_CURRENT_DESKTOP=MATE dbus-launch --exit-with-session mate-session" [LXDE]=lxsession [Lxqt]=startlxqt [KDE]=startkde [Gnome]="XDG_CURRENT_DESKTOP=GNOME dbus-launch --exit-with-session /usr/bin/gnome-session" - [XFCE]=xfce4-session) + [XFCE]=xfce4-session + [$manual_xstartup_choice]="") detected_desktop_environments=() declare -A numbered_desktop_environments @@ -36,6 +38,11 @@ print_detected_desktop_environments() { detect_desktop_environments() { for de_name in "${!all_desktop_environments[@]}"; do + if [[ "$de_name" = "$manual_xstartup_choice" ]]; then + detected_desktop_environments+=("$de_name") + continue; + fi + local executable=${all_desktop_environments[$de_name]} executable=($executable) executable=${executable[-1]}