From 3d7d3e72a3327b8c2733e5f0cf95b4f197b16985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Tue, 17 Mar 2020 23:11:29 +0100 Subject: [PATCH] [preview] Only copy file, don't chmod Fixes #479. --- url_image_preview/url_image_preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url_image_preview/url_image_preview.py b/url_image_preview/url_image_preview.py index 4113c50..a5eda37 100644 --- a/url_image_preview/url_image_preview.py +++ b/url_image_preview/url_image_preview.py @@ -502,7 +502,7 @@ class UrlImagePreviewPlugin(GajimPlugin): 'create files in this directory.'), transient_for=app.app.get_active_window()) return - shutil.copy(str(preview.orig_path), target_path) + shutil.copyfile(str(preview.orig_path), target_path) FileSaveDialog(on_ok, path=app.config.get('last_save_dir'),