fix session for tint2

master
Daniel Napora 2020-09-08 09:33:10 +02:00
parent f82ef19914
commit 6b7ab32ac8
1 changed files with 6 additions and 2 deletions

View File

@ -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