6fdf7d1511
A client can now request which compositor backend the host drives its virtual
output on (gamescope/KWin/Mutter/wlroots). The host honors the request if that
backend is available, else falls back to auto-detect and reports the resolved
choice back — wire-compatible both directions (no ABI bump).
Protocol (punktfunk-core):
- New CompositorPref (config.rs): Auto|Kwin|Wlroots|Mutter|Gamescope with
u8/name mappings. Appended as one optional byte to Hello (client preference)
and Welcome (host's resolved choice). Both decoders already tolerate trailing
bytes, so old↔new interop is preserved — ABI_VERSION stays 2. Round-trip +
back-compat (truncated-message) tests.
- C ABI: punktfunk_connect_ex(compositor) + PUNKTFUNK_COMPOSITOR_* constants;
punktfunk_connect delegates with AUTO, so the existing symbol is unchanged.
NativeClient::connect / worker_main thread the preference through.
Host:
- vdisplay::available() enumerates usable backends via cheap, side-effect-free
probes (KWin zkde global, gamescope binary+version, GNOME/Sway env), plus
Compositor id/label/as_pref/from_pref/all helpers.
- m3 handshake resolves the preference to a concrete backend during the
handshake (pick_compositor pure + resolved logging), reports it in Welcome,
and threads it into virtual_stream (replacing the unconditional detect()).
- mgmt GET /v1/compositors lists every backend with availability + the
auto-detected default (OpenAPI regenerated).
Client:
- punktfunk-client-rs --compositor NAME; logs the host's resolved choice from
the Welcome ("session offer … compositor=…").
Web console:
- Host page gains a Compositors card (availability + default badges) via the
codegen'd useListCompositors hook; en/de strings added.
Also fixes a pre-existing, env-dependent test-isolation bug:
mgmt::tests::paired_clients_list_and_unpair seeded the real
~/.config/punktfunk/paired.json (AppState::new loads it), so a real
GameStream-paired client leaked into body[0] on a dev box — now cleared first.
Live-validated against headless KWin: --compositor kwin honored, --compositor
mutter falls back to kwin (available=[kwin, gamescope]), resolved choice
round-trips to the client. Tests: +6 (wire/back-compat, resolution precedence,
endpoint); workspace green, clippy/fmt clean, C ABI harness PASS at abi_version=2,
web typecheck + build clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
71 lines
2.9 KiB
JSON
71 lines
2.9 KiB
JSON
{
|
|
"$schema": "https://inlang.com/schema/inlang-message-format",
|
|
"app_name": "punktfunk",
|
|
"app_tagline": "Verwaltungskonsole",
|
|
"nav_dashboard": "Übersicht",
|
|
"nav_host": "Host",
|
|
"nav_clients": "Gekoppelte Geräte",
|
|
"nav_pairing": "Kopplung",
|
|
"nav_settings": "Einstellungen",
|
|
"status_title": "Live-Status",
|
|
"status_video": "Video",
|
|
"status_audio": "Audio",
|
|
"status_streaming": "Aktiv",
|
|
"status_idle": "Inaktiv",
|
|
"status_session": "Sitzung",
|
|
"status_no_session": "Keine aktive Sitzung",
|
|
"status_paired_count": "Gekoppelte Geräte",
|
|
"status_pin_pending": "Kopplungs-PIN ausstehend",
|
|
"stream_codec": "Codec",
|
|
"stream_resolution": "Auflösung",
|
|
"stream_fps": "Bildrate",
|
|
"stream_bitrate": "Bitrate",
|
|
"action_stop_session": "Sitzung beenden",
|
|
"action_request_idr": "Keyframe anfordern",
|
|
"action_unpair": "Entkoppeln",
|
|
"host_identity": "Identität",
|
|
"host_hostname": "Hostname",
|
|
"host_local_ip": "Lokale IP",
|
|
"host_version": "Version",
|
|
"host_abi": "ABI-Version",
|
|
"host_codecs": "Codecs",
|
|
"host_ports": "Ports",
|
|
"host_uniqueid": "Eindeutige ID",
|
|
"host_compositors": "Compositoren",
|
|
"host_compositors_help": "Backends, auf denen der Host eine virtuelle Ausgabe erzeugen kann. Übergib eine ID an das --compositor-Flag eines Clients; der Host nutzt sie, falls verfügbar, sonst per Auto-Erkennung.",
|
|
"compositor_available": "Verfügbar",
|
|
"compositor_unavailable": "Nicht verfügbar",
|
|
"compositor_default": "Standard",
|
|
"clients_title": "Gekoppelte Geräte",
|
|
"clients_empty": "Noch keine gekoppelten Geräte.",
|
|
"clients_name": "Name",
|
|
"clients_fingerprint": "Fingerabdruck",
|
|
"clients_unpair_confirm": "Dieses Gerät entkoppeln? Es muss sich erneut koppeln, um zu verbinden.",
|
|
"pairing_title": "Kopplung",
|
|
"pairing_idle": "Keine Kopplung aktiv. Starte die Kopplung in einem Moonlight-Client und gib hier die PIN ein.",
|
|
"pairing_waiting": "Ein Gerät wartet auf Kopplung. Gib die angezeigte PIN ein:",
|
|
"pairing_pin_label": "PIN",
|
|
"pairing_submit": "PIN bestätigen",
|
|
"pairing_success": "Erfolgreich gekoppelt.",
|
|
"pairing_failed": "Kopplung fehlgeschlagen — PIN prüfen und erneut versuchen.",
|
|
"settings_title": "Einstellungen",
|
|
"settings_token_label": "API-Token",
|
|
"settings_token_help": "Bearer-Token für die Verwaltungs-API. Bei einem Loopback-Host ohne Token leer lassen.",
|
|
"settings_language": "Sprache",
|
|
"settings_save": "Speichern",
|
|
"settings_saved": "Gespeichert.",
|
|
"common_loading": "Wird geladen…",
|
|
"common_error": "Etwas ist schiefgelaufen.",
|
|
"common_retry": "Erneut versuchen",
|
|
"common_yes": "Ja",
|
|
"common_cancel": "Abbrechen",
|
|
"common_unauthorized": "Sitzung abgelaufen — Weiterleitung zur Anmeldung…",
|
|
"login_title": "Anmelden",
|
|
"login_subtitle": "Gib das Verwaltungspasswort ein, um fortzufahren.",
|
|
"login_password": "Passwort",
|
|
"login_submit": "Anmelden",
|
|
"login_error": "Falsches Passwort.",
|
|
"login_signing_in": "Anmeldung läuft…",
|
|
"action_logout": "Abmelden"
|
|
}
|