Skip to content

WebView doesn't render on Linux #6

Description

@sectore
cargo run -p gallery

guise: failed to create webview: the window handle kind is not supported
[...]

I tried the following (on Linux / Ubuntu / Wayland):

  • Force gpui to use X11 backend.
  • Setting WAYLAND_DISPLAY doesn't help either and panics:
thread 'main' panicked at gpui-0.2.2/src/platform/linux/x11/window.rs:316:9:
not implemented

By digging more into it by using Claude here are its summary:

wry's WebKitGTK backend only accepts an Xlib raw-window-handle when embedding as a child (wry0.55.1,src/webkitgtk/mod.rs), but gpui's Wayland backend hands it a Wayland handle instead (rejected), and gpui's X11 backend never implemented HasWindowHandle/HasDisplayHandleat all —X11Window::window_handle()is a literalunimplemented!() (gpui0.2.2,src/platform/linux/x11/window.rs`; still true on Zed's current main). So neither Linux backend currently has a working path.

As long as WebView is not supported for Linux in guise, my suggestions are:

  • A) make webview feature optional
    or
  • B) disable webview feature for gallery (and tailor?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions