0039: A Couchdogs launcher around stock Moonlight, and the server announces itself
Status: Superseded in part by 0040 (2026-11-22): the launcher is gone, its server parts (mDNS announce, <Couchdogs> in serverinfo) stand. Originally 2026-11-21; replaces the same-day "patch moonlight-qt with Open on start" draft, which the owner turned down: "I thought we wanted a launcher")
Context
Owner: a client "that can still connect to moonlight but by default connect directly to couchdogs, since its menu is the real controlling hub". Couchdogs is for everyone, so Windows counts, and the client "needs a way to find and set hosts". Pairing stays as it is (PIN card on any home, LAN page, ./couchdogs pair). Our server never announced itself on the LAN (Wolf did, with mdns_cpp). Stock moonlight-qt already has the command line a launcher needs: moonlight stream <host> <app>, moonlight pair <host> --pin <pin>, moonlight list <host>.
Decision
- The server announces
_nvstream._tcpover mDNS like Wolf, with the Games on Whales fork of mdns_cpp (MIT, pinned; done in961456a; replaced by our own responder on mdns.h, ADR 0041). Every stock Moonlight then lists the host. - The server's
/serverinfocarries a<Couchdogs>element (Moonlight ignores unknown elements), so the launcher can tell a Couchdogs server from a plain Sunshine or Wolf host without pairing. - A small Couchdogs launcher for Windows, macOS and Linux finds Couchdogs servers on the LAN (or takes an address), pairs through Moonlight's own
pair --pin, remembers the server and then runsmoonlight stream <server> Couchdogseach time it opens. Stock Moonlight is installed beside it and never modified. CI builds the launcher; the LAN page links it. Design:docs/superpowers/specs/2026-11-21-m8-launcher-design.md.
Not chosen: patching moonlight-qt (a GPL fork to rebase on every Moonlight release, against "consume upstream unmodified", ADR 0011); a per-OS script (no host finding, no Windows).
Consequences
Two installs on a computer (Moonlight and the launcher); Moonlight's window shows briefly around a stream; its stream settings stay Moonlight's. The launcher is unsigned at first (first-open warning on Windows and macOS). Android uses Moonlight Android's own home-screen shortcut to the Couchdogs app; iOS uses stock Moonlight.