#!/bin/bash COREDESKTOP="$HOME/.local/share/coredesktop" echo "Updating Flatpaks..." # System-wide installs need root: --noninteractive suppresses the polkit # password prompt, so without sudo they fail with "not allowed for user" sudo flatpak update --system -y --noninteractive flatpak update --user -y --noninteractive echo "Checking for new flatpaks..." . "$COREDESKTOP/install-flatpaks.sh"