summarylogtreecommitdiffstats
path: root/kisslicer2.sh
blob: c14a52059218b805325004b1581bdd4cd28bf77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

#Check if XDG_CONFIG_HOME is set, and set it if it isn't
if [ -z "$XDG_CONFIG_HOME" ]
then
	echo "XDG_CONFIG_HOME is not set, setting it to ~/.config"
	export XDG_CONFIG_HOME="$HOME/.config"
fi

#Check if directory exists
if [ ! -d $XDG_CONFIG_HOME/kisslicer2 ]
then
	mkdir -p $XDG_CONFIG_HOME/kisslicer2
fi

#Change into it and start
cd $HOME
/usr/bin/kisslicer2 -inidir $XDG_CONFIG_HOME/kisslicer2