mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
properly construct file url when opening image/folder on linux (#3986)
This commit is contained in:
parent
80618cad85
commit
9025202204
1 changed files with 2 additions and 2 deletions
|
@ -930,7 +930,7 @@ def openFolder(path: str) -> None:
|
|||
subprocess.run(["explorer", f"file://{path}"], check=False)
|
||||
else:
|
||||
with no_bundled_libs():
|
||||
QDesktopServices.openUrl(QUrl(f"file://{path}"))
|
||||
QDesktopServices.openUrl(QUrl.fromLocalFile(path))
|
||||
|
||||
|
||||
def show_in_folder(path: str) -> None:
|
||||
|
@ -947,7 +947,7 @@ def show_in_folder(path: str) -> None:
|
|||
else:
|
||||
# Just open the file in any other platform
|
||||
with no_bundled_libs():
|
||||
QDesktopServices.openUrl(QUrl(f"file://{path}"))
|
||||
QDesktopServices.openUrl(QUrl.fromLocalFile(path))
|
||||
|
||||
|
||||
def _show_in_folder_win32(path: str) -> None:
|
||||
|
|
Loading…
Reference in a new issue