Skip to content

Commit

Permalink
Add fix for proton-wine 8
Browse files Browse the repository at this point in the history
  • Loading branch information
rankynbass committed Jul 30, 2023
1 parent f20b884 commit 7d21042
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public Int32 GetUnixProcessId(Int32 winePid)
{
var wineDbg = RunInPrefix("winedbg --command \"info procmap\"", redirectOutput: true);
var output = wineDbg.StandardOutput.ReadToEnd();
if (output.Contains("syntax error\n"))
if (output.Contains("syntax error\n") || output.Contains("Exception c0000005")) // Proton8 wine changed the error message
{
var processName = GetProcessName(winePid);
return GetUnixProcessIdByName(processName);
Expand Down

0 comments on commit 7d21042

Please sign in to comment.