Desktop companion — Linux
opendeck-linux is the GTK4 + libadwaita companion for open-deck-server. It
finds the server binary, starts and stops it, shows the pairing QR code, and
reports live connection status.
Requirements
A Linux desktop with GTK4 and libadwaita (GNOME 43+ era or later)
Rust stable (to build from source)
Development packages for GTK4/libadwaita — on Debian/Ubuntu:
sudo apt install libgtk-4-dev libadwaita-1-dev
Build
cd desktop/linux
cargo build --release
Run
./target/release/opendeck-linux
You can also set OPENSDECK_SERVER=/path/to/open-deck-server if the binary
isn't where the app expects it (see "Server discovery" below).
Using the app
The window is a single adwaita page with three sections:
- Status — whether the server is running, the LAN IP, the bound port, connected phone clients, and the captured monitor resolution. These values refresh automatically every couple of seconds.
- Pairing — the pairing token (copyable to clipboard) and a QR code encoding
opendeck://connect?host=<LAN-IP>&port=<port>&token=<token>. - Server settings — port, fps, quality and max stream width used when the server is launched, plus a Start/Stop toggle.
First run
- Build
open-deck-serveronce (cd server && cargo build --release) or point the app at an existing binary (see below). - Launch
opendeck-linux. It searches foropen-deck-serverin this order:$OPENSDECK_SERVER→ the app's own directory →PATH→ the repo'sserver/target/{release,debug}/layout (walks up 6 directories). - Click Start server. The app scrapes the
Pairing tokenandMonitorlines from the server's stdout and shows them in the Pairing section. - Scan the QR code with the phone app (camera scan, or write the same URI to an NFC tag). The phone's connect form fills in automatically — tap Connect.
Day-to-day
- Stop kills the server child process; closing the window does too.
- The server settings only apply to the next launch — stop and start again after changing port/fps/quality/max-width.
- If the phone disconnects, the client count in Status drops to zero; the pairing token stays the same until the server restarts.
Troubleshooting
- Server won't start / "binary not found" — set
OPENSDECK_SERVERto the absolute path ofopen-deck-server, or build it underserver/target/. - QR doesn't pair — the phone must be on the same LAN; the QR embeds the PC's primary IPv4 (UDP-connect trick), so a VPN or multiple interfaces can pick the wrong address. Enter the host manually in that case.
- Status stuck at 0 clients — the app polls
GET /statuson127.0.0.1:<port>; if you changed the port setting, restart the server so the app polls the right one.