From 8c769c7c14eef9601442704d56af44b8426097ed Mon Sep 17 00:00:00 2001 From: Erik Eduardo Date: Wed, 3 Nov 2021 13:47:33 +0000 Subject: [PATCH 1/4] Added support to Librewolf Linux --- src/install_host_app.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/install_host_app.sh b/src/install_host_app.sh index 96aa975..704ff52 100755 --- a/src/install_host_app.sh +++ b/src/install_host_app.sh @@ -32,16 +32,18 @@ else TARGET_DIR_CHROMIUM="/etc/chromium/native-messaging-hosts" TARGET_DIR_FIREFOX="/usr/lib/mozilla/native-messaging-hosts" TARGET_DIR_VIVALDI="/etc/vivaldi/native-messaging-hosts" + TARGET_DIR_LIBREWOLF="/usr/lib/librewolf/native-messaging-hosts" else TARGET_DIR_CHROME="$HOME/.config/google-chrome/NativeMessagingHosts" TARGET_DIR_CHROMIUM="$HOME/.config/chromium/NativeMessagingHosts" TARGET_DIR_FIREFOX="$HOME/.mozilla/native-messaging-hosts" TARGET_DIR_VIVALDI="$HOME/.config/vivaldi/NativeMessagingHosts" + TARGET_DIR_LIBREWOLF="$HOME/.librewolf/native-messaging-hosts" fi fi usage() { - echo "Usage: $0 [OPTION] [chrome|chromium|firefox|opera|vivaldi] + echo "Usage: $0 [OPTION] [chrome|chromium|firefox|opera|vivaldi|librewolf] Example: $0 firefox # Install host app for Mozilla Firefox @@ -65,6 +67,10 @@ while [ $# -gt 0 ]; do BROWSER_NAME="Firefox" TARGET_DIR="$TARGET_DIR_FIREFOX" ;; + librewolf) + BROWSER_NAME="Librewolf" + TARGET_DIR="$TARGET_DIR_LIBREWOLF" + ;; opera) BROWSER_NAME="Opera" TARGET_DIR="$TARGET_DIR_VIVALDI" From cb3241db0610708b5cf3afbf81a423d5949fa551 Mon Sep 17 00:00:00 2001 From: Erik Eduardo Date: Wed, 3 Nov 2021 13:53:09 +0000 Subject: [PATCH 2/4] Added support to Librewolf MS Windows --- src/install_host_app.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/install_host_app.bat b/src/install_host_app.bat index d28d43d..758b9af 100644 --- a/src/install_host_app.bat +++ b/src/install_host_app.bat @@ -34,6 +34,9 @@ IF NOT "%1"=="" ( ) ELSE IF "%1"=="firefox" ( SET "TARGET_REG=HKCU\SOFTWARE\Mozilla\NativeMessagingHosts\%APP_NAME%" SHIFT + ) ELSE IF "%1"=="librewolf" ( + SET "TARGET_REG=HKCU\SOFTWARE\LibreWolf\NativeMessagingHosts\%APP_NAME%" + SHIFT ) ELSE IF "%1"=="chrome" ( SET "TARGET_REG=HKCU\Software\Google\Chrome\NativeMessagingHosts\%APP_NAME%" SHIFT @@ -101,7 +104,7 @@ REG ADD "%TARGET_REG%" /ve /d "%HOST_MANIFEST_FULL%" /f || ( EXIT /B :help -ECHO Usage: %0 [OPTION] [chrome^|chromium^|firefox^|opera^|vivaldi] +ECHO Usage: %0 [OPTION] [chrome^|chromium^|firefox^|opera^|vivaldi^|librewolf] ECHO ECHO Options: ECHO --local Install files from disk instead of downloading them From 0c814a1aab2299a2c44b5a58ec8b76b736334189 Mon Sep 17 00:00:00 2001 From: Erik Eduardo Date: Wed, 3 Nov 2021 19:05:16 +0000 Subject: [PATCH 3/4] Added support to LibreWolf MacOS --- src/install_host_app.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/install_host_app.sh b/src/install_host_app.sh index 704ff52..a0cbbfd 100755 --- a/src/install_host_app.sh +++ b/src/install_host_app.sh @@ -20,11 +20,13 @@ if [ "$KERNEL_NAME" = 'Darwin' ]; then TARGET_DIR_CHROMIUM="/Library/Application Support/Chromium/NativeMessagingHosts" TARGET_DIR_FIREFOX="/Library/Application Support/Mozilla/NativeMessagingHosts" TARGET_DIR_VIVALDI="/Library/Application Support/Vivaldi/NativeMessagingHosts" + TARGET_DIR_FIREFOX="/Library/Application Support/LibreWolf/NativeMessagingHosts" else TARGET_DIR_CHROME="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts" TARGET_DIR_CHROMIUM="$HOME/Library/Application Support/Chromium/NativeMessagingHosts" TARGET_DIR_FIREFOX="$HOME/Library/Application Support/Mozilla/NativeMessagingHosts" TARGET_DIR_VIVALDI="$HOME/Library/Application Support/Vivaldi/NativeMessagingHosts" + TARGET_DIR_FIREFOX="$HOME/Library/Application Support/LibreWolf/NativeMessagingHosts" fi else if [ "$(whoami)" = "root" ]; then From 6f678f92d9de77430793b054c678c3f7a1845bbe Mon Sep 17 00:00:00 2001 From: erikeah Date: Wed, 3 Nov 2021 22:42:03 +0000 Subject: [PATCH 4/4] Update src/install_host_app.sh Co-authored-by: Thomas Vogt --- src/install_host_app.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install_host_app.sh b/src/install_host_app.sh index a0cbbfd..c2a4c48 100755 --- a/src/install_host_app.sh +++ b/src/install_host_app.sh @@ -20,13 +20,13 @@ if [ "$KERNEL_NAME" = 'Darwin' ]; then TARGET_DIR_CHROMIUM="/Library/Application Support/Chromium/NativeMessagingHosts" TARGET_DIR_FIREFOX="/Library/Application Support/Mozilla/NativeMessagingHosts" TARGET_DIR_VIVALDI="/Library/Application Support/Vivaldi/NativeMessagingHosts" - TARGET_DIR_FIREFOX="/Library/Application Support/LibreWolf/NativeMessagingHosts" + TARGET_DIR_LIBREWOLF="/Library/Application Support/LibreWolf/NativeMessagingHosts" else TARGET_DIR_CHROME="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts" TARGET_DIR_CHROMIUM="$HOME/Library/Application Support/Chromium/NativeMessagingHosts" TARGET_DIR_FIREFOX="$HOME/Library/Application Support/Mozilla/NativeMessagingHosts" TARGET_DIR_VIVALDI="$HOME/Library/Application Support/Vivaldi/NativeMessagingHosts" - TARGET_DIR_FIREFOX="$HOME/Library/Application Support/LibreWolf/NativeMessagingHosts" + TARGET_DIR_LIBREWOLF="$HOME/Library/Application Support/LibreWolf/NativeMessagingHosts" fi else if [ "$(whoami)" = "root" ]; then