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
- Export compiled greeter CSS and wallpaper to /var/tmp for the greeter user.
- Serialize theme changes so rapid switches cannot race wal and sass.
- Avoid duplicate greeter export on startup and disable sass source maps.
- Pass command arguments as arrays and use forEach when creating windows.