|
@@ -12,4 +12,13 @@ if [ $? -eq 0 ]; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
+# Add sub directories of lib-path; (e.g pulseaudio)
|
|
|
+readarray -d '' PATHS < <(find "$SNAP/usr/lib/$(uname -m)-linux-gnu" -maxdepth 1 -type d -print0)
|
|
|
+
|
|
|
+if [ "${#PATHS[@]}" -ne 0 ]; then
|
|
|
+ for TPATH in "${PATHS[@]}"; do
|
|
|
+ PATH="${PATH}:${TPATH}"
|
|
|
+ done
|
|
|
+fi
|
|
|
+
|
|
|
eval $@
|