Skip to content


Browse files Browse the repository at this point in the history
AppImage: bundle JACK fallback library correctly
  • Loading branch information
PhysSong committed Feb 19, 2019
1 parent 71dbfb5 commit 97e738a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmake/linux/
Expand Up @@ -175,10 +175,16 @@ rm -f "${APPDIR}/usr/lib/"
# Use system-provided carla
rm -f "${APPDIR}usr/lib/"libcarla*.so

# Move jack out of LD_LIBRARY_PATH
# Remove bundled jack in LD_LIBRARY_PATH if exists
if [ -e "${APPDIR}/usr/lib/" ]; then
rm "${APPDIR}/usr/lib/"

# Bundle jack out of LD_LIBRARY_PATH
JACK_LIB=$(ldd "${APPDIR}/usr/bin/lmms" | sed -n 's/\tlibjack\.so\.0 => \(.\+\) (0x[0-9a-f]\+)/\1/p')
if [ -e "$JACK_LIB" ]; then
mkdir -p "${APPDIR}usr/lib/lmms/optional/"
mv "${APPDIR}/usr/lib/" "${APPDIR}usr/lib/lmms/optional/"
cp "$JACK_LIB" "${APPDIR}usr/lib/lmms/optional/"

# Point the AppRun to the shim launcher
Expand Down

0 comments on commit 97e738a

Please sign in to comment.