Segmentation Fault with apps under Gnome and Wayland

Posted in linux on November 29, 2016 by Adrian Wyssmann ‐ 1 min read

When running Arch Linux you know that Wayland is now the default compositor with Gnome. This causes some problems for certain applications. Most of the Gnome-Apps are supported but other applications may fail with an error similar to the one below

[me@archlinux ~]$ <application>
(<application>:6040): Gdk-WARNING **: gdkwindow-x11.c:5235 drawable is not a native X11 window
Segmentation fault (core dumped)

It seems not all apps are yet ready to run with wayland so you may try to solve this problem by forcing the application to use x11 backend instead

[me@archlinux ~]$ GDK_BACKEND=x11 <application>

That did it for me. You may also use X11 instead of wayland by selecting the session “Gnome on Xorg” when logging in.