From 3eed24f60f032061cebb6240bfc92bd5d3bd6050 Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Fri, 1 Dec 2023 21:39:19 +0100 Subject: fix: Windows: Use os.startfile with 'open' parameter This is an attempt to fix file opening issues with msix installs --- gajim/common/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py index 687f880df..09feab0a9 100644 --- a/gajim/common/helpers.py +++ b/gajim/common/helpers.py @@ -1108,7 +1108,7 @@ def open_file_uri(uri: str) -> None: if sys.platform != 'win32': Gio.AppInfo.launch_default_for_uri(uri) else: - os.startfile(uri) # noqa: S606 + os.startfile(uri, 'open') # noqa: S606 except Exception as err: log.info("Couldn't open file URI %s: %s", uri, err) -- cgit v1.2.3