diff --git a/usr/bin/archboot-update.sh b/usr/bin/archboot-update.sh index a6f7f98dd..7d49d7b2e 100755 --- a/usr/bin/archboot-update.sh +++ b/usr/bin/archboot-update.sh @@ -71,9 +71,26 @@ if [[ -n "${_L_XFCE}" || -n "${_L_SWAY}" || -n "${_L_PLASMA}" || -n "${_L_GNOME} if [[ -e "/.graphic_installed" && "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4413000 ]]; then _hint_graphic_installed else + _TITLE="Archboot $(uname -m) | Basic Setup | Desktop Environment" + [[ -e /var/cache/pacman/pkg/archboot.db ]] && touch /.graphic_installed + [[ -n "${_L_XFCE}" ]] && _install_xfce | _dialog --title "${_MENU_TITLE}" --gauge "Initializing Xfce..." 6 75 0 + [[ -n "${_L_GNOME}" ]] && _install_gnome + [[ -n "${_L_GNOME_WAYLAND}" ]] && _install_gnome_wayland + [[ -n "${_L_PLASMA}" ]] && _install_plasma + [[ -n "${_L_PLASMA_WAYLAND}" ]] && _install_plasma_wayland + [[ -n "${_L_SWAY}" ]] && _install_sway + # only start vnc on xorg environment + _progress "93" "Setting up VNC and browser..." + [[ -n "${_L_XFCE}" || -n "${_L_PLASMA}" || -n "${_L_GNOME}" ]] && _autostart_vnc + command -v firefox &>"${_NO_LOG}" && _firefox_flags + command -v chromium &>"${_NO_LOG}" && _chromium_flags + [[ -n "${_L_XFCE}" ]] && _start_xfce | _dialog --title "${_MENU_TITLE}" --gauge "Starting Xfce..." 6 75 94 + [[ -n "${_L_GNOME}" ]] && _start_gnome + [[ -n "${_L_GNOME_WAYLAND}" ]] && _start_gnome_wayland + [[ -n "${_L_PLASMA}" ]] && _start_plasma + [[ -n "${_L_PLASMA_WAYLAND}" ]] && _start_plasma_wayland + [[ -n "${_L_SWAY}" ]] && _start_sway touch /.update - _TITLE="Archboot $(uname -m) | Basic Setup | New Images" - _install_graphic | _dialog --title "${_MENU_TITLE}" --gauge "Initializing desktop environment..." 6 75 0 fi fi # Switch to full Arch Linux system diff --git a/usr/lib/archboot/common.sh b/usr/lib/archboot/common.sh index 51537ef15..ba082ad77 100644 --- a/usr/lib/archboot/common.sh +++ b/usr/lib/archboot/common.sh @@ -66,6 +66,8 @@ _dialog() { return $? } +# $1: percentage +# $2: message _progress() { cat <