From 9c7dc05ceae4defbf5caf63af62827efb350d830 Mon Sep 17 00:00:00 2001
From: "B.T" <52111440+brianetaveras@users.noreply.github.com>
Date: Tue, 25 Mar 2025 08:10:44 -0400
Subject: [PATCH] Update options docs to clarify linux webview gpu defaults
---
website/versioned_docs/version-v2.10/reference/options.mdx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/website/versioned_docs/version-v2.10/reference/options.mdx b/website/versioned_docs/version-v2.10/reference/options.mdx
index efcc67961..40299e300 100644
--- a/website/versioned_docs/version-v2.10/reference/options.mdx
+++ b/website/versioned_docs/version-v2.10/reference/options.mdx
@@ -126,7 +126,7 @@ func main() {
Linux: &linux.Options{
Icon: icon,
WindowIsTranslucent: false,
- WebviewGpuPolicy: linux.WebviewGpuPolicyAlways,
+ WebviewGpuPolicy: linux.WebviewGpuPolicyNever,
ProgramName: "wails"
},
Debug: options.Debug{
@@ -1066,7 +1066,8 @@ This option is used for determining the webview's hardware acceleration policy.
Name: WebviewGpuPolicy
Type: [`options.WebviewGpuPolicy`](#webviewgpupolicy-type)
-Default: `WebviewGpuPolicyAlways`
+Default (Windows, macOS): `WebviewGpuPolicyAlways`
+Default (Linux): `WebviewGpuPolicyNever`
##### WebviewGpuPolicy type