diff --git a/bin/mb-tint2-session b/bin/mb-tint2-session index a1ae048..6d807f0 100755 --- a/bin/mb-tint2-session +++ b/bin/mb-tint2-session @@ -40,13 +40,17 @@ testSessionfile(){ if test -z $line &>/dev/null;then continue else - tint2 -c "$line" & + if test -e "$HOME/$line";then + tint2 -c "$HOME/$line" & sleep 1s + else + tint2 -c "$line" & + fi fi done < "$1" else echo -e "Created sessionfile \"$1\"\nRunning default tint2rc" 2>&1 - echo "/.config/tint2/tint2rc" > "$SESSIONFILE" + echo "$HOME/.config/tint2/tint2rc" > "$SESSIONFILE" killTints tint2 -c "$TINT2PATH/tint2rc" &>/dev/null fi