Kiosk PyQt6 WebEngine : alternative navigateur, process unique, auto-reload

This commit is contained in:
2026-04-09 07:46:39 +02:00
parent b4ec4dbf3f
commit 0d24c8af26
2 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#!/bin/bash
# Installe PyQt6 WebEngine et configure le service kiosk Qt
set -e
echo "=== Installation PyQt6 WebEngine ==="
pip3 install PyQt6 PyQt6-WebEngine --break-system-packages
echo "=== Creation service systemd ==="
cat > /etc/systemd/system/photobooth-kiosk-qt.service << EOF
[Unit]
Description=Photobooth Kiosk Qt
After=graphical-session.target photobooth.service
Wants=photobooth.service
[Service]
Type=simple
User=$(logname)
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/$(logname)/.Xauthority
ExecStart=/usr/bin/python3 /home/$(logname)/photobooth/scripts/kiosk-qt.py
Restart=always
RestartSec=3
[Install]
WantedBy=graphical-session.target
EOF
systemctl daemon-reload
systemctl enable photobooth-kiosk-qt
echo "=== Pour basculer sur le kiosk Qt ==="
echo " sudo systemctl stop photobooth-kiosk"
echo " sudo systemctl disable photobooth-kiosk"
echo " sudo systemctl start photobooth-kiosk-qt"