2026-01-09 17:01:49 +01:00
|
|
|
[Unit]
|
2026-02-04 13:44:47 +01:00
|
|
|
Description="Systemec RaspScreen"
|
2026-02-04 14:29:54 +01:00
|
|
|
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
|
2026-01-12 12:17:53 +01:00
|
|
|
Restart=always
|
2026-01-09 17:01:49 +01:00
|
|
|
RestartSec=2
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=default.target
|