[Unit]
Description=Tell the user when Panama has repairs waiting
Documentation=https://github.com/gibbyb/Panama
# Started per-session by hypr/autostart.lua rather than enabled globally, for
# the same reason as every other Panama unit: graphical-session.target is
# active under GNOME too, and a notification about the Hyprland desktop has no
# business appearing in a GNOME session.

[Service]
Type=oneshot
# Resolved at runtime rather than written as a literal path: ./install and the
# stages honor an exported PANAMA_PATH, so a clone anywhere else still works.
# The sibling units reach their scripts through ~/.config/quickshell, which is
# a symlink link-dotfiles creates; bin/ has no such symlink.
ExecStart=/usr/bin/env sh -c 'exec "${PANAMA_PATH:-$HOME/.local/share/Panama}/bin/panama-migrate-notify"'
# The notification carries an action, so notify-send waits for the user to
# click or dismiss it. Bounded so an ignored notification does not leave this
# activating for the life of the session -- the next login asks again anyway.
TimeoutStartSec=1h
# Nothing to say is the overwhelmingly common case and is not a failure.
SuccessExitStatus=0 1
