mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Use Lutris runtime when calling dosexec commands
This commit is contained in:
parent
e88243ba52
commit
ad879f70ea
|
@ -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())
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue