Keep shutdown worker on the same script path
This commit is contained in:
1 parent
eaaca77efb
commit
bedc2a3979
2 files changed
+10
-1
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user