mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Snap: keep LD_LIBRARY_PATH when in snap environment (#3618)
This commit is contained in:
parent
a4626bf48e
commit
039c7fc0a9
2 changed files with 3 additions and 1 deletions
|
@ -198,6 +198,7 @@ Cy Pokhrel <cy@cy7.sh>
|
||||||
Park Hyunwoo <phu54321@naver.com>
|
Park Hyunwoo <phu54321@naver.com>
|
||||||
Tomas Fabrizio Orsi <torsi@fi.uba.ar>
|
Tomas Fabrizio Orsi <torsi@fi.uba.ar>
|
||||||
Sawan Sunar <sawansunar24072002@gmail.com>
|
Sawan Sunar <sawansunar24072002@gmail.com>
|
||||||
|
hideo aoyama <https://github.com/boukendesho>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,8 @@ av_player = AVPlayer()
|
||||||
def _packagedCmd(cmd: list[str]) -> tuple[Any, dict[str, str]]:
|
def _packagedCmd(cmd: list[str]) -> tuple[Any, dict[str, str]]:
|
||||||
cmd = cmd[:]
|
cmd = cmd[:]
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
if "LD_LIBRARY_PATH" in env:
|
# keep LD_LIBRARY_PATH when in snap environment
|
||||||
|
if "LD_LIBRARY_PATH" in env and "SNAP" not in env:
|
||||||
del env["LD_LIBRARY_PATH"]
|
del env["LD_LIBRARY_PATH"]
|
||||||
|
|
||||||
if is_win:
|
if is_win:
|
||||||
|
|
Loading…
Reference in a new issue