Bug 406599

Summary: [wayland] krfb just crashes
Product: [Applications] krfb Reporter: Damian Ivanov <damianatorrpm>
Component: generalAssignee: Alexey Min <alexey.min>
Status: RESOLVED FIXED    
Severity: normal CC: alexey.min, damianatorrpm, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 19.08.0
Sentry Crash Report:

Description Damian Ivanov 2019-04-16 14:18:32 UTC
krfb under wayland just crashes
[zzz@localhost ~]$ krfb
KCrash: Application 'krfb' crashing...
KCrash: Attempting to start /usr/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__1

[1]+  Stopped                 krfb
Comment 1 Alexey Min 2019-05-18 15:08:02 UTC
Git commit 7624aee8e219d37626ace3004346c3356afdcde0 by Alexey Min.
Committed on 18/05/2019 at 15:07.
Pushed by alexeymin into branch 'master'.

Do not crash on wayland, gracefully exit with error instead

Summary:
Sadly, XTestQueryExtension just segfaults under wayland.
Avoid it by detecting QPA used.

Test Plan:
Nice error message when running in Wayland session.
{F6833467}

Still works in X11
{F6833069}

Reviewers: aacid, kossebau, jgrulich, #kde_applications, pino, ngraham

Reviewed By: pino

Subscribers: pino, ngraham

Tags: #kde_applications

Differential Revision: https://phabricator.kde.org/D21267

M  +12   -4    krfb/main.cpp

https://commits.kde.org/krfb/7624aee8e219d37626ace3004346c3356afdcde0