Skip to content

main: Check if we are running under X11

Calls to X11 functions when running under Wayland lead to SIGSEVS. Abort gracefully if we are not running under X11.

Example stacktrace:

0  0x00007fa7679c203d in XQueryExtension () at /lib64/libX11.so.6
1  0x00007fa767969fb7 in  () at /lib64/libXtst.so.6
2  0x00007fa76796a166 in XTestQueryExtension () at /lib64/libXtst.so.6
3  0x000055d422d5aea3 in  ()
4  0x00007fa7677a0f33 in __libc_start_main () at /lib64/libc.so.6
5  0x000055d422d5b32e in  ()
Edited by Peter Keresztes Schmidt

Merge request reports