Files
raspscreen/service-files/presentation.service
DaanSelen 98df5c66e1
All checks were successful
Cross-Compile Binaries / compile-linux (push) Successful in 4m3s
Cross-Compile Binaries / compile-windows (push) Successful in 9m39s
chore: fix bugs with restarting and old files
2026-01-13 15:46:23 +01:00

17 lines
467 B
Desktop File

[Unit]
Description="Systemec Akarton Raspberry Pi Uploader Program (SARPUS)"
After=graphical.target
[Service]
Type=simple
Environment=DISPLAY=:0
WorkingDirectory=/opt/akartontv
ExecStartPre=/usr/bin/sleep 3
ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore $(find /opt/akartontv/ \( -name "*.pptx" -o -name "*.odp" \))'
ExecStop=/usr/bin/killall libreoffice
Restart=always
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target