multiple tint2 fix
parent
6e415cc6af
commit
86700dddf5
|
@ -43,12 +43,16 @@ testSessionfile(){
|
||||||
if test -e "$HOME$line";then
|
if test -e "$HOME$line";then
|
||||||
tint2 -c "$HOME$line" &
|
tint2 -c "$HOME$line" &
|
||||||
sleep 1s
|
sleep 1s
|
||||||
echo "$HOME$line" > "$SESSIONFILE"
|
echo "$HOME$line" >> "$SESSIONFILE".tmp
|
||||||
else
|
else
|
||||||
tint2 -c "$line" &
|
tint2 -c "$line" &
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < "$1"
|
done < "$1"
|
||||||
|
if test -f "$SESSIONFILE".tmp &>/dev/null;then
|
||||||
|
cat "$SESSIONFILE".tmp > "$SESSIONFILE"
|
||||||
|
rm "$SESSIONFILE".tmp
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo -e "Created sessionfile \"$1\"\nRunning default tint2rc" 2>&1
|
echo -e "Created sessionfile \"$1\"\nRunning default tint2rc" 2>&1
|
||||||
echo "$HOME/.config/tint2/tint2rc" > "$SESSIONFILE"
|
echo "$HOME/.config/tint2/tint2rc" > "$SESSIONFILE"
|
||||||
|
|
Loading…
Reference in New Issue