Now work as startup script from every directory, also if runt from a link in /usr/bin, with spaces, or from a desktop shortcut (#4266)

This commit is contained in:
efa 2018-01-21 23:16:28 +01:00 committed by Joseph Lenox
parent 19ea7a596a
commit dc9d7ed70f

View File

@ -1,5 +1,6 @@
#!/bin/bash
DIR=$(dirname "$0")
export LD_LIBRARY_PATH=./bin
BIN=$(readlink "$0")
DIR=$(dirname "$BIN")
export LD_LIBRARY_PATH="$DIR/bin"
exec "$DIR/perl-local" -I"$DIR/local-lib/lib/perl5" "$DIR/slic3r.pl" $@