diff options
Diffstat (limited to 'start-superslicer.sh')
-rw-r--r-- | start-superslicer.sh | 13 |
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 "$@" |