mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Forgot one place where env vars should be sanitized when launching external programs on windows
This commit is contained in:
parent
dd0ed12cfb
commit
196dc2acec
@ -1141,7 +1141,8 @@ def get_current_db():
|
|||||||
|
|
||||||
def open_local_file(path):
|
def open_local_file(path):
|
||||||
if iswindows:
|
if iswindows:
|
||||||
os.startfile(os.path.normpath(path))
|
with sanitize_env_vars():
|
||||||
|
os.startfile(os.path.normpath(path))
|
||||||
else:
|
else:
|
||||||
url = QUrl.fromLocalFile(path)
|
url = QUrl.fromLocalFile(path)
|
||||||
open_url(url)
|
open_url(url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user