Skip to content

Commit

Permalink
[welcome] install: if no internet connection found, ask how to proceed
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-192 committed Apr 18, 2024
1 parent 8aac911 commit 7ac2ed1
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions welcome
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ INSTALL() {
--text="$text"
--text-align=left

--field=" $(ltr ins_start)!$ICO_CALAMARES!$(ltr ins_starttip)":fbtn "eos-install-mode-run-calamares '$lang' ''"
--field=" $(ltr ins_start)!$ICO_CALAMARES!$(ltr ins_starttip)":fbtn "eos-install-mode-run-calamares '$lang' '$install_mode'"
# --field=" $(ltr install_community)!$ICO_INSTALL!$(ltr install_community_tip)":fbtn "eos-install-mode-run-calamares '$lang' community"
# --field=" $(ltr ins_arm_start)!$ICO_INSTALL_ARM!$(ltr ins_arm_starttip)":fbtn "arm-eos-welcome-installer"
)
Expand Down Expand Up @@ -1406,16 +1406,30 @@ StartHere() {
esac
done

local install_mode=""
local is_installing=no

IsInstalling && is_installing=yes

if eos-connection-checker ; then
has_a_connection=yes
else
if [ $is_installing = yes ] ; then
if type systemsettings >& /dev/null ; then
systemsettings kcm_networkmanagement
eos-connection-checker && has_a_connection=yes
eos_yad --form \
--title="What next?" \
--image=$ICO_QUESTION \
--text="No internet connection found (maybe wifi startup is slow?)." \
--button="Network manager!!Starts the network manager":1 \
--button="Offline install!!Installs KDE without internet connection":3 \
--button="Exit!!Quit this program":5
case "$?" in
1) systemsettings kcm_networkmanagement
eos-connection-checker && has_a_connection=yes
;;
3) install_mode=offline ;;
5) return ;;
esac
else
local sleeptime=1
local rounds=10
Expand Down

0 comments on commit 7ac2ed1

Please sign in to comment.