mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-04 20:22:33 +01:00
typstwatch: don't open half written files
This commit is contained in:
parent
7ab1832bd8
commit
a20c3ea6bf
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@ trap 'kill $(jobs -p); rm "$tmpf"' EXIT
|
|||
|
||||
typst watch "$1" "$tmpf" "${@:2}" &
|
||||
|
||||
while [ ! -f "$tmpf" ]; do sleep 1; done
|
||||
# Without this, zathura may try to open a half-written file. This is a hack, but I don't know of a
|
||||
# better approach.
|
||||
sleep 1
|
||||
|
||||
zathura "$tmpf"
|
||||
|
|
Loading…
Reference in a new issue