summarylogtreecommitdiffstats
path: root/start-superslicer.sh
blob: d25be0ac349b27ae3617753baa27132fa827a8fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"

/usr/share/SuperSlicer/superslicer "$@"