From 24336b236a434449817ba91012b3e85c3f3cc6d2 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Wed, 21 Jul 2021 19:08:20 +1200 Subject: [PATCH] Early start script: add -select-de support --- builder/startup/deb/kasmvncserver-easy-start | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builder/startup/deb/kasmvncserver-easy-start b/builder/startup/deb/kasmvncserver-easy-start index c80ad62..8fe3e76 100755 --- a/builder/startup/deb/kasmvncserver-easy-start +++ b/builder/startup/deb/kasmvncserver-easy-start @@ -157,6 +157,9 @@ process_cli_options() { done } +user_asked_to_select_de() { + [[ "$action" = "select-de-and-start" ]] +} show_help() { cat >&2 <<-USAGE Usage: `basename $0` [options] @@ -177,7 +180,7 @@ EOF exit 1 fi -if ! de_was_selected; then +if user_asked_to_select_de || ! de_was_selected; then detect_desktop_environments ask_user_to_choose_de debug "You selected $de_name desktop environment"