Refactor easy start script

This commit is contained in:
Dmitry Maksyoma 2021-07-18 23:16:03 +12:00
parent 3584d8c3cb
commit 66d999beaf

View File

@ -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"