fixed makefile to workaround obfuscation bug, changed gpu policy to fix wayland issue

This commit is contained in:
2026-03-06 09:53:46 -05:00
parent c6c5ece956
commit 32a8d07644
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -29,6 +29,12 @@ var (
var frontendDistAssets embed.FS
func main() {
// Work around WebKitGTK DMABuf rendering crashes on certain
// Wayland compositor / GPU-driver combinations.
if os.Getenv("WEBKIT_DISABLE_DMABUF_RENDERER") == "" {
_ = os.Setenv("WEBKIT_DISABLE_DMABUF_RENDERER", "1")
}
isDev := dev.IsDev
// create sLogger
loglevel := resolveLogLevel(isDev)
@@ -83,7 +89,7 @@ func main() {
MaxWidth: 0,
MaxHeight: 0,
Linux: &linux.Options{
WebviewGpuPolicy: linux.WebviewGpuPolicyAlways,
WebviewGpuPolicy: linux.WebviewGpuPolicyOnDemand,
},
})