AppImage & System's Jack library

• Jul 22, 2019 - 09:00

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

Do you still have an unanswered question? Please log in first to post your question.