diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 364e8704f..e824af14e 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -36,7 +36,7 @@ from anki.hooks import runFilter from anki.httpclient import HttpClient from anki.models import NotetypeDict, NotetypeId, StockNotetype from anki.notes import Note, NoteFieldsCheckResult, NoteId -from anki.utils import checksum, is_lin, is_mac, is_win, namedtmp +from anki.utils import checksum, is_lin, is_win, namedtmp from aqt import AnkiQt, colors, gui_hooks from aqt.operations import QueryOp from aqt.operations.note import update_note diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py index 4a132889b..0bf8f49ff 100644 --- a/qt/aqt/utils.py +++ b/qt/aqt/utils.py @@ -939,7 +939,7 @@ def show_in_folder(path: str) -> None: # Open the file using the default file handler. This might still open # the file in an image viewer or the browser (instead of in a file # manager) if the user has configured the system that way. - subprocess.run(["xdg-open", path]) + subprocess.run(["xdg-open", path], check=False) def _show_in_folder_win32(path: str) -> None: