Keep shutdown worker on the same script path

This commit is contained in:
Chemineer committed 2026-09-27 09:25:39 -05:00
1 parent eaaca77efb
commit bedc2a3979
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ elif [[ ${1:-} == "--inhibit" ]]; then
# Block lid handling explicitly: it ignores high-level sleep inhibitors.
systemd-inhibit --what=sleep:idle:handle-lid-switch \
--who=Omarchy --why="Shutdown in progress" --mode=block \
"$OMARCHY_PATH/bin/omarchy-system-shutdown" --inhibited || {
"$0" --inhibited || {
status=$?
omarchy-notification-send -u critical "Shutdown failed" "Could not complete shutdown. Please try again."
exit "$status"