multiple tint2 fix

master
Daniel Napora 2021-11-10 14:46:25 +01:00
parent 6e415cc6af
commit 86700dddf5
1 changed files with 5 additions and 1 deletions

View File

@ -43,12 +43,16 @@ testSessionfile(){
if test -e "$HOME$line";then
tint2 -c "$HOME$line" &
sleep 1s
echo "$HOME$line" > "$SESSIONFILE"
echo "$HOME$line" >> "$SESSIONFILE".tmp
else
tint2 -c "$line" &
fi
fi
done < "$1"
if test -f "$SESSIONFILE".tmp &>/dev/null;then
cat "$SESSIONFILE".tmp > "$SESSIONFILE"
rm "$SESSIONFILE".tmp
fi
else
echo -e "Created sessionfile \"$1\"\nRunning default tint2rc" 2>&1
echo "$HOME/.config/tint2/tint2rc" > "$SESSIONFILE"