mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Fix hyprctl crash when screensaver is terminated (#4045)
Redirect hyprctl output in exit_screensaver() to prevent SIGABRT crash when the screensaver window is closed externally (via keybind or lock screen). The crash occurs because hyprctl's std::println() throws when writing to a broken stdout after the terminal is killed.
This commit is contained in:
@@ -7,7 +7,7 @@ screensaver_in_focus() {
|
||||
}
|
||||
|
||||
exit_screensaver() {
|
||||
hyprctl keyword cursor:invisible false
|
||||
hyprctl keyword cursor:invisible false &>/dev/null || true
|
||||
pkill -x tte 2>/dev/null
|
||||
pkill -f org.omarchy.screensaver 2>/dev/null
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user