Forgot one place where env vars should be sanitized when launching external programs on windows

This commit is contained in:
Kovid Goyal 2014-11-07 21:09:34 +05:30
parent dd0ed12cfb
commit 196dc2acec

View File

@ -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)