summarylogtreecommitdiffstats
path: root/start-superslicer.sh
diff options
context:
space:
mode:
authorLukas18182021-06-11 16:52:13 +0200
committerLukas18182021-06-11 16:52:13 +0200
commit0863e105d8065fee40d430b9263a4a829e39fb2f (patch)
tree716b83c5f93bf668bb119d188e55c8491f70fdbb /start-superslicer.sh
parent7b0813ee0b65db2e003f2054541f13cf758b021e (diff)
downloadaur-0863e105d8065fee40d430b9263a4a829e39fb2f.tar.gz
update to 2.3.56.4
Diffstat (limited to 'start-superslicer.sh')
-rw-r--r--start-superslicer.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/start-superslicer.sh b/start-superslicer.sh
index 9c38b060309b..4d8694a73446 100644
--- a/start-superslicer.sh
+++ b/start-superslicer.sh
@@ -1,2 +1,15 @@
#!/bin/bash
+
+import_settings()
+{
+ if [ -d "$1" ] && [ ! -d "$HOME/.config/SuperSlicer" ]
+ then
+ echo "import data from $1 to the new data folder ~/.config/SuperSlicer"
+ cp -r "$HOME/.SuperSlicer" "$HOME/.config/SuperSlicer"
+ fi
+}
+
+import_settings "$HOME/.SuperSlicer"
+import_settings "$HOME/.config/SuperSlicer-alpha"
+
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/wxgtk-dev/lib" /usr/share/SuperSlicer/superslicer "$@"