From 5d92390cd96eceec83a92d9ae2e08f4bb981fcbb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 26 Jul 2026 14:27:55 -0700 Subject: [PATCH] Ship the migration notifier as a login-only unit omarchy renamed omarchy-update-user-notify to omarchy-migrate-notify and dropped the .path watcher that fired during every package update. Keep the old service name as a symlink onto the new unit. Existing users hold an absolute graphical-session.target.wants symlink to the old path, and the migration that repoints it only runs for users who run an update, which is the opposite of who the notifier is for. Without the alias their symlink dangles and they are never told about pending migrations. Co-Authored-By: Claude Opus 5 (1M context) --- pkgbuilds/omarchy-settings-dev/PKGBUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgbuilds/omarchy-settings-dev/PKGBUILD b/pkgbuilds/omarchy-settings-dev/PKGBUILD index edf8fa0..4054e34 100644 --- a/pkgbuilds/omarchy-settings-dev/PKGBUILD +++ b/pkgbuilds/omarchy-settings-dev/PKGBUILD @@ -156,8 +156,14 @@ package() { install -Dm644 default/systemd/user/bt-agent.service "$pkgdir/usr/lib/systemd/user/bt-agent.service" install -Dm644 default/systemd/user/omarchy-sleep-lock.service "$pkgdir/usr/lib/systemd/user/omarchy-sleep-lock.service" install -Dm644 default/systemd/user/omarchy-recover-internal-monitor.service "$pkgdir/usr/lib/systemd/user/omarchy-recover-internal-monitor.service" - install -Dm644 default/systemd/user/omarchy-update-user-notify.service "$pkgdir/usr/lib/systemd/user/omarchy-update-user-notify.service" - install -Dm644 default/systemd/user/omarchy-update-user-notify.path "$pkgdir/usr/lib/systemd/user/omarchy-update-user-notify.path" + install -Dm644 default/systemd/user/omarchy-migrate-notify.service "$pkgdir/usr/lib/systemd/user/omarchy-migrate-notify.service" + # Compatibility alias for the old unit name. Existing users have an absolute + # graphical-session.target.wants symlink to this path from when they were set + # up, and the migration that repoints it only runs for users who actually run + # an update -- which is the opposite of who this notifier is for. Without the + # alias their symlink dangles and they are never told about pending + # migrations. Droppable once installs have run migration 1785095882. + ln -sfn omarchy-migrate-notify.service "$pkgdir/usr/lib/systemd/user/omarchy-update-user-notify.service" install -Dm644 default/systemd/zram-generator.conf.d/90-omarchy.conf "$pkgdir/usr/lib/systemd/zram-generator.conf.d/90-omarchy.conf" # Same for applications/** — used by omarchy-refresh-applications,