Skip to content

Instantly share code, notes, and snippets.

@zbyna
Created September 15, 2021 19:54
Show Gist options
  • Save zbyna/84058facf5ca26faf4f5c648370bc6e9 to your computer and use it in GitHub Desktop.
Save zbyna/84058facf5ca26faf4f5c648370bc6e9 to your computer and use it in GitHub Desktop.
Tor-browser 10.5.6 - fix for Ubuntu 14.04
#!/bin/sh
basedir=$(dirname "$0")
add_LD_LIBRARY_PATH() {
if test -z "$LD_LIBRARY_PATH"
then
LD_LIBRARY_PATH="$1"
else
LD_LIBRARY_PATH="$1:$LD_LIBRARY_PATH"
fi
}
# Check if the system has a more recent version of libstdc++.so.6; if yes, use
# that instead of the bundled version.
"$basedir/abicheck" >/dev/null 2>&1
# if [ $? -ne 0 ]; then
add_LD_LIBRARY_PATH "$basedir/TorBrowser/Tor/libstdc++/"
# fi
add_LD_LIBRARY_PATH "$basedir/TorBrowser/Tor/"
export LD_LIBRARY_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment