chore: make the idea more robust
Some checks failed
Cross-Compile Binaries / compile-linux (push) Has been cancelled
Cross-Compile Binaries / compile-windows (push) Has been cancelled

This commit is contained in:
2026-01-14 16:21:48 +01:00
parent 7ac413f682
commit 22b3557fd0
4 changed files with 8 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ fi
# Create the program place onto /opt # Create the program place onto /opt
if [[ ! -d /opt/${program_name} ]]; then if [[ ! -d /opt/${program_name} ]]; then
mkdir -p /opt/${program_name} -m 755 mkdir -p /opt/${program_name}/media -m 755
chown -R ${userland_name}:${userland_name} /opt/${program_name} chown -R ${userland_name}:${userland_name} /opt/${program_name}
fi fi
@@ -33,8 +33,8 @@ After=graphical.target
Type=simple Type=simple
Environment=DISPLAY=:0 Environment=DISPLAY=:0
WorkingDirectory=/opt/akartontv WorkingDirectory=/opt/akartontv
ExecStartPre=/usr/bin/sleep 5 ExecStartPre=/usr/bin/sleep 3
ExecStart=/usr/bin/libreoffice --impress --show /opt/akartontv/presentation.pptx --norestore ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore $(find /opt/akartontv/media \( -name "*.pptx" -o -name "*.odp" \))'
ExecStop=/usr/bin/killall libreoffice ExecStop=/usr/bin/killall libreoffice
Restart=always Restart=always
Restart=on-failure Restart=on-failure
@@ -53,7 +53,8 @@ After=graphical.target
Type=simple Type=simple
Environment=DISPLAY=:0 Environment=DISPLAY=:0
WorkingDirectory=/opt/akartontv 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 --no-video-title --video-on-top --no-qt-fs-controller --qt-continue=0 $(find /opt/akartontv/media \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))'
ExecStop=/usr/bin/killall vlc ExecStop=/usr/bin/killall vlc
Restart=always Restart=always
Restart=on-failure Restart=on-failure

View File

@@ -7,7 +7,7 @@ Type=simple
Environment=DISPLAY=:0 Environment=DISPLAY=:0
WorkingDirectory=/opt/akartontv WorkingDirectory=/opt/akartontv
ExecStartPre=/usr/bin/sleep 3 ExecStartPre=/usr/bin/sleep 3
ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore $(find /opt/akartontv/ \( -name "*.pptx" -o -name "*.odp" \))' ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore $(find /opt/akartontv/media \( -name "*.pptx" -o -name "*.odp" \))'
ExecStop=/usr/bin/killall libreoffice ExecStop=/usr/bin/killall libreoffice
Restart=always Restart=always
Restart=on-failure Restart=on-failure

View File

@@ -7,7 +7,7 @@ Type=simple
Environment=DISPLAY=:0 Environment=DISPLAY=:0
WorkingDirectory=/opt/akartontv WorkingDirectory=/opt/akartontv
ExecStartPre=/usr/bin/sleep 3 ExecStartPre=/usr/bin/sleep 3
ExecStart=/bin/sh -c 'exec /usr/bin/vlc --fullscreen --loop --no-video-title --video-on-top --no-qt-fs-controller --qt-continue=0 $(find /opt/akartontv/ \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))' ExecStart=/bin/sh -c 'exec /usr/bin/vlc --fullscreen --loop --no-video-title --video-on-top --no-qt-fs-controller --qt-continue=0 $(find /opt/akartontv/media \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))'
ExecStop=/usr/bin/killall vlc ExecStop=/usr/bin/killall vlc
Restart=always Restart=always
Restart=on-failure Restart=on-failure

View File

@@ -244,7 +244,7 @@ func drawFileSelection(localPath *string, targetMode *int, parentWindow fyne.Win
// targetMode *int // targetMode *int
func drawFooter(app fyne.App, raspiTarget, localUploadPath *string, targetMode *int, cfg RaspiConfig) (*fyne.Container, *widget.Button, *widget.Button) { func drawFooter(app fyne.App, raspiTarget, localUploadPath *string, targetMode *int, cfg RaspiConfig) (*fyne.Container, *widget.Button, *widget.Button) {
remotePresPath := "/opt/akartontv/media" remotePresPath := "/opt/akartontv/media/media"
// Configuration of the bottom of the application // Configuration of the bottom of the application
var uploadBtn *widget.Button var uploadBtn *widget.Button