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.
- all files should be xx-*.conf
- kodi.conf should be last. it appends $PATH and $LD_LIBRARY_PATH
for addons. those are very important.
- busybox.conf should be right before kodi. it sets $HOME. nothing but
kodi is allowed to override whatever is set by busybox.conf
- addons.conf should be first, so if we allow addon specific
profile files, those should not be allowed to override env vars
or functions we depend on.