Files
coredesktop/system/update-notify.sh
T
2026-10-26 10:49:54 -06:00

17 lines
593 B
Bash

#!/bin/bash
#
# Purpose : Install and enable the timer that checks for a new version of
# CoreDesktop and shows a GNOME notification (system/update-check).
# Run by install.sh and on every update (updates.d/16-update-notify.sh)
# so changes to the units reach existing machines.
set -e
COREDESKTOP="$HOME/.local/share/coredesktop"
UNITS="$HOME/.config/systemd/user"
mkdir -p "$UNITS"
cp "$COREDESKTOP"/system/systemd/coredesktop-update-check.{service,timer} "$UNITS/"
systemctl --user daemon-reload
systemctl --user enable --now coredesktop-update-check.timer