summarylogtreecommitdiffstats
path: root/kisslicer.sh
blob: 018b761f567e2e49578cbe7552d93edd0fd20671 (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/kisslicer ]
then
	mkdir -p $XDG_CONFIG_HOME/kisslicer
fi

#Change into it and start
cd $HOME
/opt/kisslicer/KISSlicer -inidir $XDG_CONFIG_HOME/kisslicer