Files
raspscreen/service-files/presentation.service

17 lines
443 B
SYSTEMD
Raw Normal View History

2026-01-09 17:01:49 +01:00
[Unit]
2026-02-04 13:44:47 +01:00
Description="Systemec RaspScreen"
Conflicts=video.service
2026-01-09 17:01:49 +01:00
After=graphical.target
[Service]
Type=simple
Environment=DISPLAY=:0
2026-01-15 16:48:03 +01:00
WorkingDirectory=/opt/raspscreen
2026-01-14 16:23:31 +01:00
ExecStartPre=/usr/bin/sleep 5
2026-01-15 16:48:03 +01:00
ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore $(find /opt/raspscreen/media \( -name "*.pptx" -o -name "*.odp" \))'
2026-01-09 17:01:49 +01:00
ExecStop=/usr/bin/killall libreoffice
Restart=always
2026-01-09 17:01:49 +01:00
RestartSec=2
[Install]
WantedBy=default.target