Offer to reboot if Hyprland has been updated

This commit is contained in:
David Heinemeier Hansson
2026-02-28 15:03:51 +01:00
parent 47f396cfc6
commit debeea0bf7
+5
View File
@@ -6,6 +6,11 @@ elif [[ -f $HOME/.local/state/omarchy/reboot-required ]]; then
gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot
fi
running_hyprland=$(readlink /proc/$(pgrep -x Hyprland)/exe 2>/dev/null)
if [[ $running_hyprland == *"(deleted)"* ]]; then
gum confirm "Hyprland has been updated. Reboot?" && omarchy-system-reboot
fi
for file in "$HOME"/.local/state/omarchy/restart-*-required; do
if [[ -f $file ]]; then
filename=$(basename "$file")