Step by step example that is working with Brave on Lubuntu 20.04 for the realuser Xmodule:
Download the XModules .AppImage from Download XModules for enhanced features, Robotic Process Automation (RPA)
Open a terminal where the downloaded file is.
In terminal (replacing .AppImage filename with current one),
chmod +x uivision-xmodules-linux-v202103.AppImage
In the GUI, double click to install the AppImage.
This creates a new directory in the current directory called uivision-xmodules. Navigate to it in terminal, then open, for example, realuser_install_chrome.sh in a text editor.
Replace the line
TARGET_DIR=“$HOME/.config/google-chrome/NativeMessagingHosts”
with
TARGET_DIR=“$HOME/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts”
In terminal,
bash realuser_install_chrome.sh
Note the “bash” instead of “./”. A “Bad substitution” error is thrown otherwise on the system I’m using.
If the above doesn’t work and you happened to have tried making changes before following these steps, try deleting the .AppImage and the uivision-xmodules folder to undo any old modifications you may have made that may be preventing success, then starting the instructions from the top.