nixpkgs' sway wrapper runs sway under a dbus-run-session of its own when no session bus is set, so the script's kill reached dbus-run-session and every run left a headless sway behind. It now runs sway-unwrapped, which is the process it kills, and clears sockets a dead compositor left in its private runtime directory before it waits for the new one's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>