chore: fix bugs with restarting and old files
This commit is contained in:
@@ -6,8 +6,8 @@ After=graphical.target
|
||||
Type=simple
|
||||
Environment=DISPLAY=:0
|
||||
WorkingDirectory=/opt/akartontv
|
||||
ExecStartPre=/usr/bin/sleep 5
|
||||
ExecStart=/usr/bin/libreoffice --impress --show /opt/akartontv/presentation.pptx --norestore
|
||||
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
|
||||
|
||||
@@ -4,8 +4,10 @@ After=graphical.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=DISPLAY=:0
|
||||
WorkingDirectory=/opt/akartontv
|
||||
ExecStart=/usr/bin/vlc --loop /opt/akartontv/video.mp4 -I dummy --no-video-title
|
||||
ExecStartPre=/usr/bin/sleep 3
|
||||
ExecStart=/bin/sh -c 'exec /usr/bin/vlc --fullscreen --loop -I dummy --no-video-title --no-qt-fs-controller $(find /opt/akartontv/ \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))'
|
||||
ExecStop=/usr/bin/killall vlc
|
||||
Restart=always
|
||||
Restart=on-failure
|
||||
|
||||
Reference in New Issue
Block a user