Implement Linux WebKitGTK host - #1
Merged
Merged
Conversation
Adds a C++ native host under native/linux with JSON-RPC parity to the macOS reference, build/CI/release wiring, mise toolchain pin, and platform-aware E2E. Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
Allowlist cwd/resources in the default WebKit context before any web process starts, force software rendering defaults, drain host stdout from the launcher, and run Linux CI under dbus-run-session + soft-GL env. Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
Disable the WebKit process sandbox when --edw-test-rpc is set, and load fixture HTML via data: URLs so E2E does not depend on bubblewrap file maps. Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Linux native host for
desktop_webviewusing GTK 4 + WebKitGTK 6, followingdocs/porting.mdand matching the macOS JSON-RPC protocol surface.Changes
native/linux/— C++ host: argv/--edw-*, ini, TCP listen +listening <port>, length-prefixed JSON-RPC, windows/webview, close veto, menus, tray RPC, libnotify notifications, hybrid permissions, test RPCscripts/build_linux.sh— CMake release build →priv/native/linux/DesktopWebViewdbus-run-session+ Xvfb with soft-GL WebKit env; draft release artifactDesktopWebView-linux-x86_64data:URLsmise.toml— Erlang 26 + Elixir 1.18.4-otp-26--edw-test-rpc; cwd/resources allowlisted before web processes startVerification
dbus-run-session -- xvfb-run -a mix test→ 10/10Notes
menu.set_appleis a successful no-op on Linux