From 66d999beafd411ee45fb895f7d83763502a64705 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Sun, 18 Jul 2021 23:16:03 +1200 Subject: [PATCH] Refactor easy start script --- builder/startup/deb/kasmvncserver-easy-start | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/startup/deb/kasmvncserver-easy-start b/builder/startup/deb/kasmvncserver-easy-start index bcd9383..1db47ab 100755 --- a/builder/startup/deb/kasmvncserver-easy-start +++ b/builder/startup/deb/kasmvncserver-easy-start @@ -85,6 +85,10 @@ de_name_from_number() { de_name=${numbered_desktop_environments[$de_number_to_run]} } +setup_de_to_run_via_xstartup() { + generate_xstartup "$de_name" +} + generate_xstartup() { local de_name="$1" @@ -130,10 +134,6 @@ if [[ "$action" = "kill" ]]; then exit fi -setup_de_to_run_via_xstartup() { - generate_xstartup "$de_name" -} - detect_desktop_environments ask_user_to_choose_de debug "You selected $de_name desktop environment"