Skip to content

Commit

Permalink
Fix libjack.so.0 detection for openSUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Feb 8, 2025
1 parent 6a0a4cd commit 551bec5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/linux/apprun-hooks/jack-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Workaround crash when jack is missing by providing a dummy version
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
ME="$( basename "${BASH_SOURCE[0]}")"
if ldconfig -p | grep libjack.so.0 > /dev/null 2>&1; then
echo "[$ME] Jack appears to be installed on this system, so we'll use it." >&2
if ldd "$DIR/usr/bin/lmms" |grep "libjack.so.0" |grep "not found" > /dev/null 2>&1; then
echo "[$ME] Jack does not appear to be installed. That's OK, we'll use a dummy version instead." >&2
export LD_LIBRARY_PATH="$DIR/usr/lib/lmms/optional:$LD_LIBRARY_PATH"
else
echo "[$ME] Jack does not appear to be installed. That's OK, we'll use a dummy version instead." >&2
export LD_LIBRARY_PATH=$DIR/usr/lib/lmms/optional:$LD_LIBRARY_PATH
echo "[$ME] Jack appears to be installed on this system, so we'll use it." >&2
fi

0 comments on commit 551bec5

Please sign in to comment.