Skip to content

Commit 0ddd5a0

Browse files
Merge pull request #399 from loathingKernel/develop
WineResolver: Do not unset 'DISPLAY' when running silently
2 parents 8f018cb + 0c848c4 commit 0ddd5a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rare/utils/compat/utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def execute_subprocess(command: List[str], arguments: List[str], environment: Ma
6161
out, err = out.decode("utf-8", "ignore") if out else "", err.decode("utf-8", "ignore") if err else ""
6262

6363
# lk: the following is a work-around for wineserver sometimes hanging around after
64-
proc = get_configured_subprocess(command + ["wineboot", "-k"], environment)
64+
proc = get_configured_subprocess(command + ["wineboot", "-e"], environment)
6565
_, _ = proc.communicate()
6666
return out, err
6767

@@ -77,7 +77,7 @@ def execute_qprocess(command: List[str], arguments: List[str], environment: Mapp
7777
proc.deleteLater()
7878

7979
# lk: the following is a work-around for wineserver sometimes hanging around after
80-
proc = get_configured_qprocess(command + ["wineboot", "-k"], environment)
80+
proc = get_configured_qprocess(command + ["wineboot", "-e"], environment)
8181
proc.start()
8282
proc.waitForFinished(-1)
8383
proc.deleteLater()
@@ -166,5 +166,5 @@ def get_host_environment(app_environment: Dict, silent: bool = True) -> Dict:
166166
_environ["WINEDEBUG"] = "-all"
167167
_environ["WINEDLLOVERRIDES"] = "winemenubuilder=d;mscoree=d;mshtml=d;"
168168
# lk: pressure-vessel complains about this but it doesn't fail due to it
169-
_environ["DISPLAY"] = ""
169+
#_environ["DISPLAY"] = ""
170170
return _environ

0 commit comments

Comments
 (0)