From 41b7f73d9e22404f3e7cdd085f557796d2ac1156 Mon Sep 17 00:00:00 2001 From: DaanSelen Date: Thu, 15 Jan 2026 16:48:03 +0100 Subject: [PATCH] feat: rename project --- README.md | 4 ++-- build.sh | 2 +- install.sh | 10 +++++----- service-files/presentation.service | 4 ++-- service-files/video.service | 4 ++-- src/action.go | 2 +- src/draw.go | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f6e28c0..96279e2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Pi, Raspberry, Raspberry Pi = De Raspberry Pi hardware ## Digest -AkartonTV (of SystemecTV) is een programma of opstelling van verschillende softwarepakketten die het mogelijk maken om videos en presentaties op een willekeurig scherm af te spelen. +AkartonTV (of SystemecTV of RaspScreen) is een programma of opstelling van verschillende softwarepakketten die het mogelijk maken om videos en presentaties op een willekeurig scherm af te spelen. Dit wordt mogelijk gemaakt door kleine computers, vaak Single-Board Computers (SBC) die Linux gebruiken. In het geval van dit project is het opgesteld in 2 gedeeltes, algemene installatie - waarbij Raspberry Pi devices als standaard worden gemarkeerd. @@ -47,7 +47,7 @@ Hoe deze 'raspis.yaml' moet worden geinstalleerd is naast het .exe (executable) ``` ./ - - akartontv.exe + - raspscreen.exe - raspis.yaml ``` diff --git a/build.sh b/build.sh index 0eb2ccc..84c84df 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,2 @@ #!/bin/bash -go build -o akartontv src/*.go +go build -o RaspScreen src/*.go diff --git a/install.sh b/install.sh index 10f40ee..c8fa1a4 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -program_name="akartontv" +program_name="raspscreen" runtime_id=$(id -u) userland_name="${1-systemec}" @@ -30,9 +30,9 @@ After=graphical.target [Service] Type=simple Environment=DISPLAY=:0 -WorkingDirectory=/opt/akartontv +WorkingDirectory=/opt/raspscreen ExecStartPre=/usr/bin/sleep 5 -ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore \$(find /opt/akartontv/media \( -name "*.pptx" -o -name "*.odp" \))' +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 Restart=on-failure @@ -50,9 +50,9 @@ After=graphical.target [Service] Type=simple Environment=DISPLAY=:0 -WorkingDirectory=/opt/akartontv +WorkingDirectory=/opt/raspscreen ExecStartPre=/usr/bin/sleep 5 -ExecStart=/bin/sh -c 'exec /usr/bin/vlc --fullscreen --loop --no-video-title --video-on-top --no-qt-privacy-ask --no-qt-fs-controller --qt-continue=0 \$(find /opt/akartontv/media \( -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-privacy-ask --no-qt-fs-controller --qt-continue=0 \$(find /opt/raspscreen/media \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))' ExecStop=/usr/bin/killall vlc Restart=always Restart=on-failure diff --git a/service-files/presentation.service b/service-files/presentation.service index 64dc27b..844b046 100644 --- a/service-files/presentation.service +++ b/service-files/presentation.service @@ -5,9 +5,9 @@ After=graphical.target [Service] Type=simple Environment=DISPLAY=:0 -WorkingDirectory=/opt/akartontv +WorkingDirectory=/opt/raspscreen ExecStartPre=/usr/bin/sleep 5 -ExecStart=/bin/sh -c 'exec /usr/bin/libreoffice --impress --show --norestore $(find /opt/akartontv/media \( -name "*.pptx" -o -name "*.odp" \))' +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 Restart=on-failure diff --git a/service-files/video.service b/service-files/video.service index 054d5bb..d47ea57 100644 --- a/service-files/video.service +++ b/service-files/video.service @@ -5,9 +5,9 @@ After=graphical.target [Service] Type=simple Environment=DISPLAY=:0 -WorkingDirectory=/opt/akartontv +WorkingDirectory=/opt/raspscreen ExecStartPre=/usr/bin/sleep 5 -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" \))' +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/raspscreen/media \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))' ExecStop=/usr/bin/killall vlc Restart=always Restart=on-failure diff --git a/src/action.go b/src/action.go index e10221e..74b483b 100644 --- a/src/action.go +++ b/src/action.go @@ -66,7 +66,7 @@ func verifyCred(targetName string, cfg RaspiConfig) bool { } func sftpUploadFile(targetName, localPath, remotePath string, cfg RaspiConfig) bool { - const clearDirectory string = "rm /opt/akartontv/media/*" + const clearDirectory string = "rm /opt/raspscreen/media/*" sshClient, err := createSSHClient(targetName, cfg) diff --git a/src/draw.go b/src/draw.go index 639246f..cd9f1be 100644 --- a/src/draw.go +++ b/src/draw.go @@ -244,7 +244,7 @@ func drawFileSelection(localPath *string, targetMode *int, parentWindow fyne.Win // targetMode *int func drawFooter(app fyne.App, raspiTarget, localUploadPath *string, targetMode *int, cfg RaspiConfig) (*fyne.Container, *widget.Button, *widget.Button) { - remotePresPath := "/opt/akartontv/media/media" + remotePresPath := "/opt/raspscreen/media/media" // Configuration of the bottom of the application var uploadBtn *widget.Button