Files
raspscreen/service-files/presentation.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
462 B
Desktop File

[Unit]
Description="Systemec RaspScreen"
Conflicts=video.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/libreoffice --impress --show --norestore $(find /opt/raspscreen/media \( -name "*.pptx" -o -name "*.odp" \))'
ExecStop=/usr/bin/killall libreoffice
Restart=always
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target