Skip to content

Commit a77244c

Browse files
authored
use shared/lib instead of lib
1 parent eb994d5 commit a77244c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

useful-tools/quick-sharun.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ _map_paths_ld_preload_open() {
823823
# format new line entries in PATH_MAPPING into comma separated
824824
# entries for sharun, pathmap accepts new lines in the variable
825825
# but the .env library used by sharun does not
826-
if [ -n "$PATH_MAPPING" ] && [ ! -f "$APPDIR"/lib/path-mapping.so ]; then
826+
if [ -n "$PATH_MAPPING" ] && [ ! -f "$APPDIR"/shared/lib/path-mapping.so ]; then
827827
PATH_MAPPING=$(echo "$PATH_MAPPING" \
828828
| tr '\n' ',' | tr -d '[:space:]' | sed 's/,*$//; s/^,*//'
829829
)
@@ -844,7 +844,7 @@ _map_paths_ld_preload_open() {
844844
make all
845845
)
846846

847-
mv -v "$TMPDIR"/ld-preload-open/path-mapping.so "$APPDIR"/lib
847+
mv -v "$TMPDIR"/ld-preload-open/path-mapping.so "$APPDIR"/shared/lib
848848
echo "path-mapping.so" >> "$APPDIR"/.preload
849849
echo "PATH_MAPPING=$PATH_MAPPING" >> "$APPENV"
850850
_echo "* PATH_MAPPING successfully added!"
@@ -1296,10 +1296,10 @@ _echo "------------------------------------------------------------"
12961296
echo ""
12971297

12981298
set -- \
1299-
"$APPDIR"/lib/*.so* \
1300-
"$APPDIR"/lib/*/*.so* \
1301-
"$APPDIR"/lib/*/*/*.so* \
1302-
"$APPDIR"/lib/*/*/*/*.so*
1299+
"$APPDIR"/shared/lib/*.so* \
1300+
"$APPDIR"/shared/lib/*/*.so* \
1301+
"$APPDIR"/shared/lib/*/*/*.so* \
1302+
"$APPDIR"/shared/lib/*/*/*/*.so*
13031303

13041304
for lib do case "$lib" in
13051305
*libgegl*)
@@ -1390,7 +1390,7 @@ for lib do case "$lib" in
13901390
done
13911391

13921392
# check for hardcoded path to any other possibly bundled library dir
1393-
topleveldirs=$(find "$APPDIR"/lib/ -maxdepth 1 -type d | sed 's|/.*/||')
1393+
topleveldirs=$(find "$APPDIR"/shared/lib/ -maxdepth 1 -type d | sed 's|/.*/||')
13941394
for dir in $topleveldirs; do
13951395
# skip directories we already handle here on in sharun
13961396
case "$dir" in
@@ -1413,7 +1413,7 @@ for dir in $topleveldirs; do
14131413
;;
14141414
esac
14151415

1416-
for f in "$APPDIR"/lib/*.so* "$APPDIR"/shared/bin/*; do
1416+
for f in "$APPDIR"/shared/lib/*.so* "$APPDIR"/shared/bin/*; do
14171417
if [ ! -f "$f" ]; then
14181418
continue
14191419
elif grep -aoq -m 1 "$LIB_DIR"/"$dir" "$f"; then
@@ -1564,7 +1564,7 @@ $ADD_DIR
15641564
EOF
15651565

15661566
# wrap any executable in lib with sharun
1567-
for b in $(find "$APPDIR"/lib/ -type f ! -name '*.so*'); do
1567+
for b in $(find "$APPDIR"/shared/lib/ -type f ! -name '*.so*'); do
15681568
if [ -x "$b" ] && [ -x "$APPDIR"/shared/bin/"${b##*/}" ]; then
15691569
ln -f "$APPDIR"/sharun "$b"
15701570
_echo "* Wrapped lib executable '$b' with sharun"
@@ -1614,7 +1614,7 @@ ffmpeg and in that case this is not an issue.
16141614
------------------------------------------------------------
16151615
------------------------------------------------------------
16161616
"
1617-
set -- "$APPDIR"/lib/libjack.so*
1617+
set -- "$APPDIR"/shared/lib/libjack.so*
16181618
if [ -f "$1" ]; then
16191619
if ! ldd "$1" | grep -q 'libpipewire'; then
16201620
_err_msg "$libjackwarning"

0 commit comments

Comments
 (0)