mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:24:00 +02: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue