notification service initial

This commit is contained in:
2026-10-26 10:49:54 -06:00
parent c27354df20
commit 4593082c4a
8 changed files with 133 additions and 3 deletions
@@ -0,0 +1,11 @@
[Unit]
Description=Notify when a new version of CoreDesktop is available
# Notifications need a desktop session to show in
ConditionEnvironment=|WAYLAND_DISPLAY
ConditionEnvironment=|DISPLAY
[Service]
# Not oneshot: the script waits, without a time limit, for the notification
# to be clicked or dismissed
Type=simple
ExecStart=%h/.local/share/coredesktop/system/update-check
@@ -0,0 +1,11 @@
[Unit]
Description=Check for a new version of CoreDesktop every few hours
[Timer]
OnStartupSec=5min
# Counted from when the last check finished, so a notification left open for
# hours doesn't have another check queued up behind it
OnUnitInactiveSec=4h
[Install]
WantedBy=timers.target