mirror of
https://github.com/ankitects/anki.git
synced 2025-12-30 23:32:57 -05:00
don't inherit ld_library_path when calling mplayer
This commit is contained in:
parent
d37e6fc78b
commit
7f40303e31
1 changed files with 4 additions and 1 deletions
|
|
@ -148,9 +148,12 @@ class MplayerMonitor(threading.Thread):
|
|||
try:
|
||||
cmd = mplayerCmd + ["-slave", "-idle"]
|
||||
devnull = file(os.devnull, "w")
|
||||
env = os.environ.copy()
|
||||
if "LD_LIBRARY_PATH" in env:
|
||||
del env['LD_LIBRARY_PATH']
|
||||
self.mplayer = subprocess.Popen(
|
||||
cmd, startupinfo=si, stdin=subprocess.PIPE,
|
||||
stdout=devnull, stderr=devnull)
|
||||
stdout=devnull, stderr=devnull, env=env)
|
||||
except OSError:
|
||||
mplayerEvt.clear()
|
||||
raise Exception("Did you install mplayer?")
|
||||
|
|
|
|||
Loading…
Reference in a new issue