AppImage & System's Jack library
AppRun.in uses ldconfig to look for libjack.so.0 but ldconfig is not in PATH, at least not in my system (Debian) for normal users. So it uses the dummy library resulting in no audio.
Also, the machine's architecture should be checked against, either the running system's or the compilation's. Better set to compilation's (should modify CMakeLists.txt, probably). Watch the conversion: underscore -> dash.
FIX (AppRun.in):
...
_PATH=$PATH
PATH=/usr/local/sbin:/sbin:$PATH
ARCH=`uname -m | sed -e 's/_/-/g' # TODO: set to compilation's arch (watch the underscore)
if ldconfig -p | grep -q "^\s\+libjack\.so\.0\s\+([^,]*,$ARCH)" 2>/dev/null; then
echo "Jack appears to be installed on this system, so we'll use it."
else
echo "Jack does not appear to be installed. That's OK, we'll use a dummy version instead."
export LD_LIBRARY_PATH="$APPDIR/optional:$LD_LIBRARY_PATH"
fi
PATH=$_PATH
...
Comments
a closing backtick is missing, and better use $(...) instead anyway.
Mind to put this into a Pull Request on GitHub?
Edit: Thanks for https://github.com/musescore/MuseScore/pull/5238
Just came up in https://musescore.org/en/node/292765