mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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):
|
||||
if iswindows:
|
||||
os.startfile(os.path.normpath(path))
|
||||
with sanitize_env_vars():
|
||||
os.startfile(os.path.normpath(path))
|
||||
else:
|
||||
url = QUrl.fromLocalFile(path)
|
||||
open_url(url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user