mirror of
https://github.com/deunix-educ/mediadeck.git
synced 2026-11-25 04:39:42 +01:00
e823b2d470
Python bridge (aiohttp, single asyncio loop) between a tablet browser and a Linux media PC: MPRIS players, PipeWire audio (pactl), virtual keyboard and touchpad (uinput), power and session control (logind). - Tablet UI with player, audio, touchpad, launchers and system tabs (fr/en) - Launchers stored in SQLite and managed from /admin; raw commands are opt-in (admin.allow_custom_command) - Optional text entry, translated to key presses from the PC's real keyboard layout with libxkbcommon and never through the clipboard (features.text_input, off by default) - Local HTTPS with a private CA restricted by name constraints (make cert) - Token-protected WebSocket and REST API, strict CSP, no JS dependencies Checked: pyright 0 errors, 87 unit tests, browser tests in headless Chromium. Not yet exercised on the real tablet, nor with real uinput key presses. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
19 lines
520 B
Plaintext
19 lines
520 B
Plaintext
# Service utilisateur : doit tourner dans la session graphique (bus D-Bus de session)
|
|
[Unit]
|
|
Description=MediaDeck web remote for the media PC
|
|
Documentation=file://@PROJECT_DIR@/README.md
|
|
After=graphical-session.target pipewire-pulse.service
|
|
PartOf=graphical-session.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=@PROJECT_DIR@/.venv/bin/python -m mediadeck
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
# Durcissement compatible avec le pilotage de la session
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|