multiple tint2 fix
parent
6e415cc6af
commit
86700dddf5
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue