0003: Gamescope instead of sway for console apps
- Status: Accepted (2026-11-13, M1)
- Date: 2026-11-12
Context
Wildlife app images run inside a compositor chosen by env var: RUN_SWAY (sway, a tiling desktop window manager), RUN_GAMESCOPE (Gamescope, the compositor SteamOS uses), or none (Wayland-native apps only). The ES-DE image uses sway. Sway's default is to tile windows, so an emulator that is not fullscreen lands in a pane beside ES-DE. Dolphin requests to leave fullscreen while starting a game, after any sway for_window rule has fired; window rules and Dolphin settings were needed to fight this (three incidents). Sway also has upstream bugs (wolf#519, gst-wayland-display#77).
Gamescope shows one app full screen, runs XWayland itself (X11 emulators work), and is built for exactly this use. One upstream user moved all apps to Gamescope (wolf#528).
Decision
Run console apps (ES-DE and the emulators it launches, Steam Big Picture, media apps) under Gamescope. Keep sway only for desktop-style apps if any are offered.
Verified (M1, on the host's AMD GPU)
- ES-DE launches Dolphin, the game is shown full screen with no window rules, the pad reaches it, Back+Start returns to ES-DE. Launch is faster than under sway.
- Upstream's ES-DE launch script breaks under Gamescope (quoted command); we ship our own (ADR 0005).
- Frame pacing and audio were not measured separately; GameCube speed problems turned out to be Dolphin settings.
Consequences
- No sway rules and no Dolphin fullscreen setting in the overlays.
- Next: propose upstream that console images default to Gamescope (owner's OK first).