17 lines
443 B
Desktop File
17 lines
443 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
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=default.target |