AppImage: fix library paths
Fix spelling of the plugin path, and remove setting LD_LIBRARY_PATH at all, to avoid breaking other apps we launch (eg browser).
This commit is contained in:
@@ -61,14 +61,16 @@ sed -i 's/^Categor.*/&;/ ; s/^Keyword.*/&;/ ; s/1\.1/1\.0/' appdir/usr/share/app
|
|||||||
|
|
||||||
#generate AppRun script
|
#generate AppRun script
|
||||||
|
|
||||||
|
# Note: don't set LD_LIBRARY_PATH here.
|
||||||
|
# if you do, you need to add code to unset it *sinde* FlightGear (eg, bootstrap.cxx),
|
||||||
|
# so that fork-ed processes don't inherit the value. For an example see:
|
||||||
|
# https://github.com/KDAB/hotspot/blob/master/src/main.cpp#L87
|
||||||
|
|
||||||
cat << 'EOF' > appdir/AppRun
|
cat << 'EOF' > appdir/AppRun
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
HERE="$(dirname "$(readlink -f "${0}")")"
|
||||||
export SIMGEAR_TLS_CERT_PATH=$HERE/usr/ssl/cacert.pem
|
export SIMGEAR_TLS_CERT_PATH=$HERE/usr/ssl/cacert.pem
|
||||||
echo SIMGEAR_TLS_CERT_PATH=$SIMGEAR_TLS_CERT_PATH
|
export OSG_LIBRARY_PATH=${HERE}/usr/lib
|
||||||
export LD_LIBRARY_PATH=${HERE}/usr/lib:${LD_LIBRARY_PATH}
|
|
||||||
export OSG_LIBARARY_PATH=${HERE}/usr/lib
|
|
||||||
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
|
|
||||||
exec "${HERE}/usr/bin/fgfs" "$@"
|
exec "${HERE}/usr/bin/fgfs" "$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user