[Unit]
Description=Update Flatpak applications
Documentation=https://github.com/gibbyb/Panama
# Pointless without a network, and a failure here is noise rather than news.
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
# --noninteractive so it never waits for an answer nobody is there to give.
# No --system: this updates the user installation, which needs no privilege.
ExecStart=/usr/bin/flatpak update --assumeyes --noninteractive
# An update that cannot reach the network should not be reported as a failure
# every hour; the timer will try again.
SuccessExitStatus=0 1
