#!/bin/bash # Exit immediately on error, treat unset variables as errors, propagate pipe failures. set -euo pipefail # Load shared log/warn/skip helpers from the installer library. source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh" log "Installing PrismLauncher (Flatpak)..." # PrismLauncher is a Minecraft launcher that manages multiple instances and Java versions. # The Flatpak edition bundles its own Java runtimes, avoiding system JDK conflicts. # -y: non-interactive, auto-approve all prompts. flatpak install --user -y flathub org.prismlauncher.PrismLauncher apply_flatpak_theme "org.prismlauncher.PrismLauncher" log "PrismLauncher installed."