Why is Pale Moon unable to find the Mozilla runtime, and what environment variables can I set in the wrapper to fix it.
The background:
Trying to run Pale Moon from within a wrapper script results in the Subject line error message. Pale Moon runs fine if executed directly. The shell wrapper exports environment variables needed for sound support. The executable is running under an Ubuntu userspace on a FreeBSD host.
This works (the actual palemoon binary):
/compat/ubuntu/usr/bin/palemoon
This doesn't (the shell wrapper calling the binary):
/compat/ubuntu/bin/palemoon
Relevant lines of the shell wrapper:
Code: Select all
#!/compat/ubuntu/bin/bash
export PALEMOON_PATH="/usr/lib/palemoon/palemoon"
exec -a "$0" "$PALEMOON_PATH" "$@"
Code: Select all
# ls -lhd /usr/bin/palemoon /usr/lib/palemoon/palemoon
lrwxr-xr-x 1 root root 24 Dec 18 14:35 /usr/bin/palemoon -> ../lib/palemoon/palemoon
-rwxr-xr-x 1 root root 179K Dec 18 14:35 /usr/lib/palemoon/palemoon