Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorefa <efa@users.noreply.github.com>2018-01-22 01:16:28 +0300
committerJoseph Lenox <lordofhyphens@gmail.com>2018-01-22 01:16:28 +0300
commitdc9d7ed70fa0fa505ddba59470899241e6676ea6 (patch)
tree2b8fc81d9c2bac2baeb086a2e0822867b2ab82d6
parent19ea7a596a19e7a59ddb2ae2f3dde8c107bd9d11 (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.sh5
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" $@