Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/omarchy-update-restart
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ done
echo -e "\e[32m\nRestarting shell\e[0m"
echo "All plugins have been reloaded"
omarchy-restart-shell || true

# bash holds a running crash-watch on the unlinked inode after pacman
# replaces the script, so the next toast calls the new notification
# helper with the old argv. try-restart is a no-op if it isn't running.
systemctl --user try-restart omarchy-crash-watch.service >/dev/null 2>&1 || true
4 changes: 4 additions & 0 deletions test/shell.d/crash-capture-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ grep -F 'omarchy-crash-watch.service' "$ROOT/install/user/first-run/enable-user-
fail "crash capture is no longer on by default for new installs"
pass "crash capture is on by default"

grep -F 'try-restart omarchy-crash-watch.service' "$ROOT/bin/omarchy-update-restart" >/dev/null ||
fail "updates leave the running watcher on the unlinked inode after pacman replaces it"
pass "updates restart the crash watcher"

require_command jq

# The per-program mute, driven through the real watcher with a stubbed journal:
Expand Down