You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I want to use WebView2 in a Linux environment. I have installed Ubuntu 22.04 and Ubuntu 24.04 in VMware and created a new Uno Desktop project. I followed the example to install libwebkit2gtk and added the necessary code, but when I run the program, I only get a blank window. An error occurs, and the program crashes:
Gdk-WARNING **: 21:51:21.366: ../../../../../gdk/x11/gdkwindow-x11.c:5653 drawable is not a native X11 window
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x0
Serial number of failed request: 100
Current serial number in output stream: 101
After setting GDK_BACKEND=x11, the error message disappears, but the window remains blank. I suspect the content is there because occasionally, when I drag the window, I can briefly see some thing that should be inside the window, like this:
However, as you can see, the entire window remains blank, and two windows appear—it's not just embedded in the Uno application.
I think I might have made a mistake somewhere. Does anyone know the correct steps or behavior to resolve this? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to use WebView2 in a Linux environment. I have installed Ubuntu 22.04 and Ubuntu 24.04 in VMware and created a new Uno Desktop project. I followed the example to install libwebkit2gtk and added the necessary code, but when I run the program, I only get a blank window. An error occurs, and the program crashes:
After setting GDK_BACKEND=x11, the error message disappears, but the window remains blank. I suspect the content is there because occasionally, when I drag the window, I can briefly see some thing that should be inside the window, like this:

However, as you can see, the entire window remains blank, and two windows appear—it's not just embedded in the Uno application.
I think I might have made a mistake somewhere. Does anyone know the correct steps or behavior to resolve this? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions