mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-01-07 14:39:48 +01:00
Easy start script: refactor
This commit is contained in:
parent
24336b236a
commit
7c4896ac66
@ -79,7 +79,7 @@ remember_de_choice() {
|
|||||||
touch "$de_was_selected_file"
|
touch "$de_was_selected_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
de_was_selected() {
|
de_was_selected_on_previous_run() {
|
||||||
[[ -f "$de_was_selected_file" ]]
|
[[ -f "$de_was_selected_file" ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ EOF
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if user_asked_to_select_de || ! de_was_selected; then
|
if user_asked_to_select_de || ! de_was_selected_on_previous_run; then
|
||||||
detect_desktop_environments
|
detect_desktop_environments
|
||||||
ask_user_to_choose_de
|
ask_user_to_choose_de
|
||||||
debug "You selected $de_name desktop environment"
|
debug "You selected $de_name desktop environment"
|
||||||
|
Loading…
Reference in New Issue
Block a user