# GtkPlug only works under X11 (JUCE 7.0.2, Ubuntu 22.04 LTS)

**URL:** <https://forum.juce.com/t/gtkplug-only-works-under-x11-juce-7-0-2-ubuntu-22-04-lts/53142>\
**Category:** General JUCE discussion\
**Created:** [September 25, 2022, 10:11am UTC](https://forum.juce.com/t/gtkplug-only-works-under-x11-juce-7-0-2-ubuntu-22-04-lts/53142 "2022-09-25T10:11:28Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [October 3, 2022, 2:30pm UTC](https://forum.juce.com/t/gtkplug-only-works-under-x11-juce-7-0-2-ubuntu-22-04-lts/53142/19 "2022-10-03T14:30:53Z")

</div>

Please could you test out the following patch, and check whether it prevents the crash in your application?

[0001-WebBrowserComponent-Force-webkit2gtk-to-use-the-X11-.patch](https://forum.juce.com/uploads/short-url/bORnrG3gg3M4gu6rIYS0ncgotoU.patch) (4.4 KB)

It looks like this issue has been reported previously:

> [@List of Juce dependencies under linux](https://forum.juce.com/t/list-of-juce-dependencies-under-linux/15121/41):
>
> You need to set the backend to X11 instead of Wayland which is now the default, you can do this by typing export GDK\_BACKEND=x11 or just GDK\_BACKEND=x11 Projucer.

---

_[View the full topic](https://forum.juce.com/t/gtkplug-only-works-under-x11-juce-7-0-2-ubuntu-22-04-lts/53142)._
