0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 20:20:30 +00:00
nvdias0 ef68ba9fb8
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.
2024-01-02 14:28:43 +00:00

17 lines
516 B
Plaintext

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
# PATH
for addon in /storage/.kodi/addons/*/bin /usr/lib/kodi/addons/*/bin; do
[ -d "$addon" ] && PATH="$PATH:$addon"
done
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)" &&
[ ! -z "$files" ] && LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$addon"
done
export LD_LIBRARY_PATH