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
+16
View File
@@ -386,6 +386,13 @@ echo ""
if detect_raspberry_pi; then
echo "Step 5/6: Optimizing for Raspberry Pi..."
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)
if [ -n "$BOOT_CONFIG" ]; then
@@ -433,6 +440,15 @@ mkdir -p "$SCRIPT_DIR/logs"
touch "$SCRIPT_DIR/logs/.gitkeep" 2>/dev/null || true
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_config() {
local config_dir="$SCRIPT_DIR/config"