Use Lutris runtime when calling dosexec commands

This commit is contained in:
Mathieu Comandon 2019-11-10 10:54:58 -08:00
parent e88243ba52
commit ad879f70ea
2 changed files with 3 additions and 2 deletions

View file

@ -99,7 +99,7 @@ class CommandsMixin:
args.append(self._substitute(arg))
terminal = data.get("terminal")
working_dir = data.get("working_dir")
if not data.get("disable_runtime", False):
if not data.get("disable_runtime"):
# Possibly need to handle prefer_system_libs here
env.update(runtime.get_env())

View file

@ -1,6 +1,7 @@
"""DOSBox installer commands"""
import os
from lutris import runtime
from lutris.runners import import_runner
from lutris.util import system
from lutris.util.log import logger
@ -33,7 +34,7 @@ def dosexec(config_file=None, executable=None, args=None, exit=True, working_dir
command += args.split()
if exit:
command.append("-exit")
system.execute(command, cwd=working_dir)
system.execute(command, cwd=working_dir, env=runtime.get_env())
def makeconfig(path, drives, commands):