superslicer-prerelease/start-superslicer.sh
2021-06-11 16:49:10 +02:00

15 lines
427 B
Bash

#!/bin/bash
import_settings()
{
if [ -d "$1" ] && [ ! -d "$HOME/.config/SuperSlicer-alpha" ]
then
echo "import data from $1 to the new data folder ~/.config/SuperSlicer-alpha"
cp -r "$HOME/.SuperSlicer" "$HOME/.config/SuperSlicer-alpha"
fi
}
import_settings "$HOME/.config/SuperSlicer"
import_settings "$HOME/.SuperSlicer"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/wxgtk-dev/lib" /usr/share/SuperSlicer/superslicer "$@"