47d1b060b2
sockets() reads the environment through a function, so a unit test can check the paths a real Discord listens on for each platform ($TMPDIR on macOS, $XDG_RUNTIME_DIR and its Flatpak and Snap subfolders on Linux, named pipes on Windows). Offscreen e2e runs can't cover this: an automated run only talks to a fake Discord named by HORIZON_DISCORD_IPC_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>