diff options
author | wurstsalat <mailtrash@posteo.de> | 2023-12-01 23:39:19 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2023-12-01 23:39:24 +0300 |
commit | 3eed24f60f032061cebb6240bfc92bd5d3bd6050 (patch) | |
tree | 251f7a05daaa52cfcc29843603779ddf40368277 | |
parent | 1a8da0265caa17353c47f376a8c93828fb2308f2 (diff) |
fix: Windows: Use os.startfile with 'open' parameter
This is an attempt to fix file opening issues with msix installs
-rw-r--r-- | gajim/common/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |