Respect runtime environment in runtime.get_env

This commit is contained in:
Mathieu Comandon 2016-10-10 12:19:49 -07:00
parent 9f8b9fefc7
commit dea1c7d189

View file

@ -105,6 +105,9 @@ class RuntimeUpdater:
def get_env():
"""Return a dict containing LD_LIBRARY_PATH and STEAM_RUNTIME env vars."""
if is_disabled():
return {}
steam_runtime_dir = os.path.join(RUNTIME_DIR, 'steam')
ld_library_path = ':'.join(get_paths()) + ':$LD_LIBRARY_PATH'
return {