Skip to content

Commit 3930f58

Browse files
authored
Merge pull request #4162 from brianetaveras/patch-3
Update options docs to clarify linux webview gpu defaults
2 parents ba9ab72 + dadf638 commit 3930f58

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

website/src/pages/changelog.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Changed
1818
- Updated recommendation for Svelte router in [#4085](https://github.com/wailsapp/wails/pull/4085) by [@benmccann](https://github.com/benmccann)
19+
- Updated documentation to clarify `WebviewGpuPolicy` default behavior on Linux in [#4162](https://github.com/wailsapp/wails/pull/4162) by [@brianetaveras](https://github.com/brianetaveras)
1920

2021
### Added
2122
- Added "Branding" section to `wails doctor` to correctly identify Windows 11 [#3891](https://github.com/wailsapp/wails/pull/3891) by [@ronen25](https://github.com/ronen25)

website/versioned_docs/version-v2.10/reference/options.mdx

+5-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func main() {
126126
Linux: &linux.Options{
127127
Icon: icon,
128128
WindowIsTranslucent: false,
129-
WebviewGpuPolicy: linux.WebviewGpuPolicyAlways,
129+
WebviewGpuPolicy: linux.WebviewGpuPolicyNever,
130130
ProgramName: "wails"
131131
},
132132
Debug: options.Debug{
@@ -1066,7 +1066,10 @@ This option is used for determining the webview's hardware acceleration policy.
10661066
10671067
Name: WebviewGpuPolicy<br/>
10681068
Type: [`options.WebviewGpuPolicy`](#webviewgpupolicy-type)<br/>
1069-
Default: `WebviewGpuPolicyAlways`
1069+
Default (Windows, macOS): `WebviewGpuPolicyAlways`<br/>
1070+
Default (Linux): Due to [#2977](https://github.com/wailsapp/wails/issues/2977,), if `options.Linux` is nil
1071+
in the call to `wails.Run()`, `WebviewGpuPolicy` is set by default to `WebviewGpuPolicyNever`. You can override this behavior by passing a non-nil `Options` and set `WebviewGpuPolicy` as needed.
1072+
10701073
10711074
##### WebviewGpuPolicy type
10721075

0 commit comments

Comments
 (0)