diff options
author | Omar Rizwan <omar@omar.website> | 2021-01-02 23:03:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 23:03:36 -0800 |
commit | f875d56b0741099569a2bac82acc1d3a937dcb83 (patch) | |
tree | 9e6bbef37d6f237cda32bc002847b3bd10ad216e | |
parent | dcce4221a2122c2d62c2f6c45761374dc8e08ecb (diff) | |
parent | 3c0d711d033fdb8d5ea06c740bd0eaef6d1dec87 (diff) |
Merge pull request #22 from rareranger/master
Add support for Vivaldi browser on Linux
-rwxr-xr-x | install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5,8 +5,9 @@ set -eux if [[ "$#" -lt 1 || ( ! ( ( "$1" == "firefox" && "$#" -eq 1 ) || ( "$1" == "chrome" && "$#" -eq 2 && ${#2} -eq 32 ) || + ( "$1" == "vivaldi" && "$#" -eq 2 && ${#2} -eq 32 ) || ( "$1" == "chromium" && "$#" -eq 2 && ${#2} -eq 32 ) ) ) ]]; then - echo "Usage: $0 <chrome EXTENSION_ID | chromium EXTENSION_ID | firefox>" + echo "Usage: $0 <chrome EXTENSION_ID | chromium EXTENSION_ID | vivaldi EXTENSION_ID | firefox>" exit 2 fi @@ -28,6 +29,8 @@ case "$OS $BROWSER" in MANIFEST_LOCATION="$HOME/.config/chromium/NativeMessagingHosts";; "Linux chromium") MANIFEST_LOCATION="$HOME/.config/chromium/NativeMessagingHosts";; + "Linux vivaldi") + MANIFEST_LOCATION="$HOME/.config/vivaldi/NativeMessagingHosts";; "Darwin chrome") MANIFEST_LOCATION="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts";; "Darwin chromium") @@ -40,7 +43,7 @@ APP_NAME="com.rsnous.tabfs" EXE_PATH=$(pwd)/fs/tabfs case "$BROWSER" in - chrome | chromium) + chrome | chromium | vivaldi) EXTENSION_ID=$2 MANIFEST=$(cat <<EOF { |