Files
raspscreen/service-files/video.service
DaanSelen 3afad859ec
All checks were successful
Cross-Compile Binaries / compile-linux (push) Successful in 4m13s
Cross-Compile Binaries / compile-windows (push) Successful in 9m42s
chore: add begin of manage script and modify service file for systemd conflict
2026-02-04 14:29:54 +01:00

18 lines
548 B
Desktop File

[Unit]
Description="Systemec RaspScreen"
Conflicts=presentation.service
After=graphical.target
[Service]
Type=simple
Environment=DISPLAY=:0
WorkingDirectory=/opt/raspscreen
ExecStartPre=/usr/bin/sleep 5
ExecStart=/bin/sh -c 'exec /usr/bin/vlc --fullscreen --loop --no-video-title --video-on-top --no-qt-fs-controller --qt-continue=0 $(find /opt/raspscreen/media \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))'
ExecStop=/usr/bin/killall vlc
Restart=always
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target