#!/bin/bash set -uo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=../../lib/common.sh source "$HERE/../../lib/common.sh" # shellcheck source=../../lib/session.sh source "$HERE/../../lib/session.sh" if is_debug; then set +e; else set -e; fi step "Desktop environment: GNOME" rule if pkg_installed gnome-shell; then ok "GNOME already installed." else info "Installing the GNOME desktop..." # Group names have shifted across releases; take whichever exists. install_group_any gnome-desktop gnome-desktop-environment workstation-product-environment install_optional gnome-tweaks gnome-extensions-app fi # GNOME ships and enables gdm itself. We deliberately leave it alone: a DE module # never fights the DE over its own greeter. A TWM module switched on top will # move the system to SDDM instead. info "Current display manager: $(detect_display_manager)" ok "GNOME setup complete."