Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedWindowHandle (Wayland is not supported) #2

Open
YPares opened this issue Sep 26, 2024 · 3 comments · May be fixed by #4
Open

UnsupportedWindowHandle (Wayland is not supported) #2

YPares opened this issue Sep 26, 2024 · 3 comments · May be fixed by #4

Comments

@YPares
Copy link

YPares commented Sep 26, 2024

I'm running into the error described in tauri-apps/wry#1314 when using vega-view on Ubuntu with Wayland.

Fortunately this also describes a way to fix it in vega-view rust code

@YPares
Copy link
Author

YPares commented Sep 26, 2024

Okay, I'm trying to fix this in https://github.com/YPares/vega-view/tree/YPares-patch-1 , but I'm getting a blank window when running ls | vega view (vega bar size), and this warning:

(vega-view:920724): Gtk-WARNING **: 09:00:47.235: Attempting to add a widget with type WebKitWebView to a
GtkApplicationWindow, but as a GtkBin subclass a GtkApplicationWindow can only contain one widget at a time;
it already contains a widget of type GtkBox

@YPares
Copy link
Author

YPares commented Sep 26, 2024

Ok, got it to build by hacking around with children() (see my branch) and I'm now getting just the following warnings when running:

(process:1092937): Gtk-WARNING **: 09:29:21.943: Locale not supported by C library.
	Using the fallback 'C' locale.
Gtk-Message: 09:29:21.972: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:29:21.974: Failed to load module "canberra-gtk-module"

(process:1092959): Gtk-WARNING **: 09:29:22.082: Locale not supported by C library.
	Using the fallback 'C' locale.
Gtk-Message: 09:29:22.116: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:29:22.117: Failed to load module "canberra-gtk-module"

but I still have a blank window...

@guapodero guapodero linked a pull request Oct 28, 2024 that will close this issue
@guapodero
Copy link

Thanks for pointing this out @YPares. I had the same issue and so I followed up on what you were doing. It turns out there was an example of how to use WebviewBuilder::new_gtk here https://github.com/tauri-apps/wry/blob/dev/bench/tests/src/hello_world.rs#L60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants