summaryrefslogtreecommitdiff
path: root/bin/zathura_wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'bin/zathura_wrapper')
-rwxr-xr-xbin/zathura_wrapper1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/zathura_wrapper b/bin/zathura_wrapper
index d007510..f9202c2 100755
--- a/bin/zathura_wrapper
+++ b/bin/zathura_wrapper
@@ -22,6 +22,7 @@ with contextlib.ExitStack() as stack:
try:
resp = urllib.request.urlopen(args[-1])
shutil.copyfileobj(resp, tf)
+ tf.flush()
args[-1] = tf.name
except urllib.error.URLError as e:
sys.stderr.write('Error downloading the URL "%s" to a temporary file\n', str(e))