From ef68ba9fb88616c8f081070943d8f2e27d4e9706 Mon Sep 17 00:00:00 2001 From: nvdias0 <64958294+nvdias0@users.noreply.github.com> Date: Tue, 2 Jan 2024 14:28:43 +0000 Subject: [PATCH] Fix LD_LIBRARY_PATH update After [065d3f5], LD_LIBRARY_PATH is not updated, even when there are *.so inside $addon/lib dirs. Looking into the code: changing LD_LIBRARY_PATH in a set of code between parenthesis will keep the change only inside that scope. I propose replacing the parenthesis. --- packages/mediacenter/kodi/profile.d/99-kodi.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/mediacenter/kodi/profile.d/99-kodi.conf b/packages/mediacenter/kodi/profile.d/99-kodi.conf index aeb545ebd5..25a4f7c3f0 100644 --- a/packages/mediacenter/kodi/profile.d/99-kodi.conf +++ b/packages/mediacenter/kodi/profile.d/99-kodi.conf @@ -9,9 +9,8 @@ export PATH # LD_LIBRARY_PATH for addon in /storage/.kodi/addons/*/lib /usr/lib/kodi/addons/*/lib; do - [ -d "$addon" ] && ( - files="$(find $addon ! -type d -name '*.so*' -maxdepth 1)" + [ -d "$addon" ] && + files="$(find $addon ! -type d -name '*.so*' -maxdepth 1)" && [ ! -z "$files" ] && LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon" - ) done export LD_LIBRARY_PATH