From dc9d7ed70fa0fa505ddba59470899241e6676ea6 Mon Sep 17 00:00:00 2001 From: efa Date: Sun, 21 Jan 2018 23:16:28 +0100 Subject: [PATCH] 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) --- package/linux/startup_script.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/linux/startup_script.sh b/package/linux/startup_script.sh index 82757118b..30f0e2c69 100644 --- a/package/linux/startup_script.sh +++ b/package/linux/startup_script.sh @@ -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" $@