updated install and some fixes

This commit is contained in:
2026-10-02 16:38:03 +03:00
parent a5b5109102
commit e8809f91fa
4 changed files with 31 additions and 14 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
#\!/bin/bash #\!/bin/bash
SCRIPT_DIR="/home/pi/kiwy-signage" SCRIPT_DIR="/home/pi/Desktop/Kiwy-Signage"
LOG_FILE="/home/pi/kiwy-signage/logs/player-background.log" LOG_FILE="/home/pi/Desktop/Kiwy-Signage/logs/player-background.log"
mkdir -p "." mkdir -p "."
echo "[2026-07-17 10:54:53] Starting player in background..." >> "" echo "[2026-10-02 15:28:02] Starting player in background..." >> ""
cd "/home/pi/kiwy-signage" || exit 1 cd "/home/pi/Desktop/Kiwy-Signage" || exit 1
nohup bash start.sh >> "" 2>&1 & nohup bash start.sh >> "" 2>&1 &
PLAYER_PID=$\! PLAYER_PID=$\!
echo "[2026-07-17 10:54:53] Player started with PID: $PLAYER_PID" >> "" echo "[2026-10-02 15:28:02] Player started with PID: $PLAYER_PID" >> ""
echo "Player started in background (PID: $PLAYER_PID)" echo "Player started in background (PID: $PLAYER_PID)"
echo "Logs: $LOG_FILE" echo "Logs: $LOG_FILE"
+1 -1
View File
@@ -1,3 +1,3 @@
#\!/bin/bash #\!/bin/bash
sleep 15 sleep 15
cd /home/pi/kiwy-signage && bash start.sh cd /home/pi/Desktop/Kiwy-Signage && bash start.sh
+9 -8
View File
@@ -1,17 +1,15 @@
{ {
"server_ip": "", "server_ip": "192.168.0.110",
"port": "8080", "port": "",
"screen_name": "", "screen_name": "rpi-tvholba1",
"quickconnect_key": "", "quickconnect_key": "8887779",
"orientation": "Landscape", "orientation": "Landscape",
"touch": "True", "touch": "True",
"max_resolution": "1920x1080", "max_resolution": "1920x1080",
"edit_feature_enabled": true, "edit_feature_enabled": true,
"use_https": false, "use_https": false,
"verify_ssl": false, "verify_ssl": false,
"card_reader_mode": "auto", "production_mode": false,
"card_reader_device": "",
"card_reader_timeout": 5,
"weblink": { "weblink": {
"engine": "auto", "engine": "auto",
"interaction_postpone": 10, "interaction_postpone": 10,
@@ -21,5 +19,8 @@
"min_max_dwell": 300, "min_max_dwell": 300,
"launch_timeout": 15, "launch_timeout": 15,
"prewarm": false "prewarm": false
} },
"card_reader_mode": "auto",
"card_reader_device": "",
"card_reader_timeout": 5
} }
+16
View File
@@ -387,6 +387,13 @@ if detect_raspberry_pi; then
echo "Step 5/6: Optimizing for Raspberry Pi..." echo "Step 5/6: Optimizing for Raspberry Pi..."
echo "--------------------" echo "--------------------"
if [ -f "$SCRIPT_DIR/linux/fix_kivy_sdl2.sh" ]; then
echo "Applying Raspberry Pi Wayland SDL2 fix..."
bash "$SCRIPT_DIR/linux/fix_kivy_sdl2.sh"
else
echo "WARNING: linux/fix_kivy_sdl2.sh not found; Wayland SDL2 fix skipped"
fi
BOOT_CONFIG=$(find_boot_config) BOOT_CONFIG=$(find_boot_config)
if [ -n "$BOOT_CONFIG" ]; then if [ -n "$BOOT_CONFIG" ]; then
echo "Configuring HDMI settings..." echo "Configuring HDMI settings..."
@@ -433,6 +440,15 @@ mkdir -p "$SCRIPT_DIR/logs"
touch "$SCRIPT_DIR/logs/.gitkeep" 2>/dev/null || true touch "$SCRIPT_DIR/logs/.gitkeep" 2>/dev/null || true
echo "Player directories created" echo "Player directories created"
# The installer may have been run with sudo, leaving downloaded media and
# playlist files owned by root. The desktop player runs as ACTUAL_USER.
ACTUAL_GROUP=$(id -gn "$ACTUAL_USER")
echo "Granting $ACTUAL_USER write access to player media and playlists..."
run_sudo chown -R "$ACTUAL_USER:$ACTUAL_GROUP" \
"$SCRIPT_DIR/media" "$SCRIPT_DIR/playlists"
run_sudo chmod -R u+rwX "$SCRIPT_DIR/media" "$SCRIPT_DIR/playlists"
echo "Media and playlist permissions configured"
# Write player configuration # Write player configuration
write_player_config() { write_player_config() {
local config_dir="$SCRIPT_DIR/config" local config_dir="$SCRIPT_DIR/config"