I am having issues getting any of the XModules to install on Ubuntu 20.4 using the Brave Browser.
After executing the appImage file, I am greeted with the success terminal message, but this still does not install the modules, despite it being ran as an executable as suggested.
The modules work on Firefox and Chrome when they are installed.
The Brave browser, like so many others, is built on the open-source Chromium code by Google. So it should work well with the XModules. The reason why they are not displayed as installed is because the our default installation script does not support the Brave browser (= its file locations) yet.
Inside the AppImage you will find shell scripts like the below (one for each XModule). You can replace the references to Chrome with the locations to the Brave browser and the installation should work:
#!/bin/sh
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
DIR="$( cd "$( dirname "$0" )" && pwd )"
if [ "$(uname -s)" = "Darwin" ]; then
if [ "$(whoami)" = "root" ]; then
TARGET_DIR="/Library/Google/Chrome/NativeMessagingHosts"
else
TARGET_DIR="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts"
fi
else
if [ "$(whoami)" = "root" ]; then
TARGET_DIR="/etc/opt/chrome/native-messaging-hosts"
else
TARGET_DIR="$HOME/.config/google-chrome/NativeMessagingHosts"
fi
fi
HOST_NAME=com.a9t9.kantu.xy
HOST_EXECUTABLE=kantu-xy-host
# Create directory to store native messaging host.
mkdir -p "$TARGET_DIR"
# Copy native messaging host manifest.
cp "$DIR/$HOST_NAME.chrome.json" "$TARGET_DIR/$HOST_NAME.json"
# Update host path in the manifest.
HOST_PATH=$DIR/$HOST_EXECUTABLE
ESCAPED_HOST_PATH=${HOST_PATH////\\/}
sed -i -e "s/HOST_PATH/$ESCAPED_HOST_PATH/" "$TARGET_DIR/$HOST_NAME.json"
# Set permissions for the manifest so that all users can read it.
chmod o+r "$TARGET_DIR/$HOST_NAME.json"
echo "Native messaging host $HOST_NAME for CHROME has been installed."