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 diff --git a/src/install_host_app.sh b/src/install_host_app.sh index 96aa975..c2a4c48 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_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_LIBREWOLF="$HOME/Library/Application Support/LibreWolf/NativeMessagingHosts" fi else if [ "$(whoami)" = "root" ]; then @@ -32,16 +34,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 +69,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"