#So that could be parsed to figure out the number of apps chosen and fed into flatpak —user —noninteractive flathub and allow people to pick what they install on first boot
if [[ -z "${selection}" ]]; then
#if cancel is pressed, $custom variable is empty so we go back to use the default options
defaultOptions
else
IFS='|' read -a pkgs <<< "$selection"
fi
}
firstMSG() {
#Insert Welcome message here
zenity --question --icon=distributor-logo-Aeon-symbolic --no-wrap --title 'Welcome to openSUSE Aeon' \
--text 'Almost done, there is one last step\n\nWe need to download some applications to get you started\n\nYou can add more software later using the <b>Software</b> App' \
--width 300 --height 300 \
--ok-label OK \
--cancel-label Customise
option=$?
if [ "$option" != 0 ]; then
#User wants to customize software
customizeOptions
else
#OK Button selected, running with defaults
defaultOptions
fi
}
lastMSG() {
#Insert Welcome message here
zenity --info --icon=distributor-logo-Aeon-symbolic --no-wrap --title 'Welcome to openSUSE Aeon' \
--text 'Congratulations!\n\nYour system is ready to be used\n\nWe hope you enjoy using <b>openSUSE Aeon</b>' \
--width 300 --height 300
}
detectLocale() {
if [[ ! "${LANG}" =~ ^en_ ]]; then
need_locale=${LANG}
fi
}
show_progress() {
(
echo "# Waiting for Internet connection"
until /usr/bin/curl -s --max-time 5 https://flathub.org > /dev/null; do sleep 1; done
while /usr/bin/pgrep -f '/usr/bin/flatpak|/usr/sbin/transactional-update|/usr/bin/pkexec' >/dev/null; do