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
10 lines
267 B
Bash
Executable File
10 lines
267 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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
|
|
setsid -f dunst >/dev/null 2>&1 </dev/null
|
|
|
|
hyprctl reload
|