diff options
author | efa <efa@users.noreply.github.com> | 2018-01-22 01:16:28 +0300 |
---|---|---|
committer | Joseph Lenox <lordofhyphens@gmail.com> | 2018-01-22 01:16:28 +0300 |
commit | dc9d7ed70fa0fa505ddba59470899241e6676ea6 (patch) | |
tree | 2b8fc81d9c2bac2baeb086a2e0822867b2ab82d6 | |
parent | 19ea7a596a19e7a59ddb2ae2f3dde8c107bd9d11 (diff) |
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)master_alexrj_orig
-rw-r--r-- | package/linux/startup_script.sh | 5 |
1 files 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" $@ |