fix(theme): stop the update script from stalling wallpaper switches
execAsync resolves only once stdout/stderr reach EOF, and update_script.sh started dunst with '&' so the daemon inherited AGS's captured pipes. Once theme switches were serialized behind themeQueue, that pending promise blocked every later switch, including the one restoreTheme() queues at startup, so clicking a wallpaper did nothing. - detach dunst with setsid and redirected stdio in update_script.sh - run update_script.sh with its fds detached and without awaiting it, so user-added commands can never stall the queue
This commit is contained in:
1 parent
58749dcbdc
commit
6347fdbc2a
2 files changed
+23
-10
No files matched your search
+4
-3
@@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Dunst notification daemon
|
||||
# Dunst notification daemon.
|
||||
# Detach it from this script's stdio: AGS only resolves execAsync once the
|
||||
# captured pipes are closed, so an inherited fd here would stall the caller.
|
||||
killall dunst
|
||||
dunst &
|
||||
setsid -f dunst >/dev/null 2>&1 </dev/null
|
||||
|
||||
hyprctl reload
|
||||
|
||||
Reference in new issue
Block a user