-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
appimage: move launcher code into launch_lmms.sh.
- Loading branch information
Showing
2 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
export PATH="$PATH:/sbin" | ||
if which carla > /dev/null 2>&1; then | ||
CARLAPATH="$(which carla)" | ||
CARLAPREFIX="${CARLAPATH%/bin*}" | ||
echo "Carla appears to be installed on this system at $CARLAPREFIX/lib[64]/carla so we'll use it." | ||
export LD_LIBRARY_PATH=$CARLAPREFIX/lib/carla:$CARLAPREFIX/lib64/carla:$LD_LIBRARY_PATH | ||
else | ||
echo "Carla does not appear to be installed. That's OK, please ignore any related library errors." | ||
fi | ||
export LD_LIBRARY_PATH=$DIR/usr/lib/:$DIR/usr/lib/lmms:$LD_LIBRARY_PATH | ||
# Prevent segfault on VirualBox | ||
if lsmod |grep vboxguest > /dev/null 2>&1; then | ||
echo "VirtualBox detected. Forcing libgl software rendering." | ||
export LIBGL_ALWAYS_SOFTWARE=1; | ||
fi | ||
if ldconfig -p | grep libjack.so.0 > /dev/null 2>&1; 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=$DIR/usr/lib/lmms/optional:$LD_LIBRARY_PATH | ||
fi | ||
QT_X11_NO_NATIVE_MENUBAR=1 $DIR/usr/bin/lmms.real "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters