Files
coredesktop/updates.d/30-flatpak.sh
T
2026-10-21 16:41:39 -06:00

13 lines
398 B
Bash

#!/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"