summaryrefslogtreecommitdiff
path: root/kde-plasma/kwin/files/kwin-5.14.3-kcrash-init.patch
blob: fc9c3007f840de3f498601a4bf9c7fe7edacc702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From aace9b1675819feab81d50f694391c7d854d9822 Mon Sep 17 00:00:00 2001
From: Harald Sitter <sitter@kde.org>
Date: Fri, 16 Nov 2018 12:50:53 +0100
Subject: actually initialize kcrash for xclipboardsync

Summary:
to successfully use kcrash when linking with as-needed (which is a default
flag on many linux distros) one also needs to call KCrash::initialize.

https://markmail.org/thread/zv5pheijaze72bzs

Test Plan: builds; correctly links kcrash

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16923
---
 helpers/xclipboardsync/main.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/helpers/xclipboardsync/main.cpp b/helpers/xclipboardsync/main.cpp
index 2f06e9c..1a5e5ee 100644
--- a/helpers/xclipboardsync/main.cpp
+++ b/helpers/xclipboardsync/main.cpp
@@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *********************************************************************/
 #include "waylandclipboard.h"
 
+#include <KCrash>
 #include <QGuiApplication>
 
 #include <config-kwin.h>
@@ -40,6 +41,7 @@ int main(int argc, char *argv[])
                 argv[0], qPrintable(app.platformName()));
         return 1;
     }
+    KCrash::initialize();
     new WaylandClipboard(&app);
     return app.exec();
 }
-- 
cgit v0.11.2