tidy llvm pipe hack.
MODIFY
WalletWasabi.Gui/Program.cs
WalletWasabi.Gui/Program.cs
@@ -103,19 +103,10 @@ namespace WalletWasabi.Gui
}
else if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
- try
- {
- var shellResult = ShellUtils.ExecuteShellCommand("glxinfo | grep renderer", "");
-
- if(!string.IsNullOrWhiteSpace(shellResult.Output) && shellResult.Output.Contains("llvmpipe"))
+ if(Utils.DetectLLVMPipeRasterizer())
{
useGpuLinux = false;
}
- }
- catch (Exception e)
- {
-
- }
result.UsePlatformDetect();
}

MODIFY
WalletWasabi.Gui/Utils/ProcessUtils.cs
WalletWasabi.Gui/Utils/ProcessUtils.cs
@@ -22,6 +22,28 @@ namespace WalletWasabi.Gui
public string ErrorOutput { get; set; }
}
+ public static class Utils
+ {
+ public static bool DetectLLVMPipeRasterizer()
+ {
+ try
+ {
+ var shellResult = ShellUtils.ExecuteShellCommand("glxinfo | grep renderer", "");
+
+ if (!string.IsNullOrWhiteSpace(shellResult.Output) && shellResult.Output.Contains("llvmpipe"))
+ {
+ return true;
+ }
+ }
+ catch (Exception)
+ {
+ // do nothing
+ }
+
+ return false;
+ }
+ }
+
public static class ShellUtils
{
private static ShellType ExecutorType = ShellType.Generic;

tidy llvm pipe hack.