diff --git a/src/i2p.firefox.usability.profile/i2pbrowser.sh b/src/i2p.firefox.usability.profile/i2pbrowser.sh deleted file mode 100755 index 5bb33f6..0000000 --- a/src/i2p.firefox.usability.profile/i2pbrowser.sh +++ /dev/null @@ -1,44 +0,0 @@ -#! /usr/bin/env sh - -if [ -f "/etc/i2pbrowser/i2pbrowserrc" ]; then - . /etc/i2pbrowser/i2pbrowserrc -fi - -if [ ! -z $I2PROUTER ]; then - "$I2PROUTER" start -fi - -if [ -z $BROWSING_PROFILE ]; then - BROWSING_PROFILE="." -fi - -if [ ! -d "$BROWSING_PROFILE" ]; then - mkdir -p "$BROWSING_PROFILE" - cp -vr /var/lib/i2pbrowser/profile/* "$BROWSING_PROFILE" -fi - -if [ ! -f "$BROWSING_PROFILE/user.js" ]; then - echo "user.js not present in $BROWSING_PROFILE, this is not a Firefox profile" - exit 1 -fi - -if [ -z $FIREFOX ]; then - if [ -f "firefox/firefox" ]; then - FIREFOX="./firefox/firefox" - fi - FIREFOX=$(which firefox-esr) - if [ -z $FIREFOX ]; then - FIREFOX=$(which firefox) - fi -fi - -if [ -z $FIREFOX ]; then - echo "Firefox does not appear to be in your \$PATH." - echo "Please install Firefox via a package manager, or" - echo "or set the FIREFOX variable in your shell to the" - echo "location of a Firefox executable." - exit 1 -fi - -echo $FIREFOX --profile "$BROWSING_PROFILE" $@ -$FIREFOX --profile "$BROWSING_PROFILE" $@ \ No newline at end of file