diff --git a/.kde-ci.yml b/.kde-ci.yml index 7870ed33..1c31bbcc 100644 --- a/.kde-ci.yml +++ b/.kde-ci.yml @@ -16,6 +16,7 @@ Dependencies: 'frameworks/kwidgetsaddons': '@latest-kf6' 'frameworks/kwindowsystem': '@latest-kf6' 'frameworks/kxmlgui': '@latest-kf6' + 'frameworks/kcrash': '@latest-kf6' 'frameworks/kstatusnotifieritem': '@latest-kf6' 'libraries/plasma-wayland-protocols': '@latest-kf6' 'plasma/kwayland': '@latest-kf6' diff --git a/CMakeLists.txt b/CMakeLists.txt index 13ab725f..28307deb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,7 @@ find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS WindowSystem XmlGui StatusNotifierItem + Crash ) find_package(X11 REQUIRED) diff --git a/krfb/CMakeLists.txt b/krfb/CMakeLists.txt index 2d2bef29..c5aebfe5 100644 --- a/krfb/CMakeLists.txt +++ b/krfb/CMakeLists.txt @@ -106,6 +106,7 @@ target_link_libraries (krfb KF6::WindowSystem KF6::XmlGui KF6::StatusNotifierItem + KF6::Crash ${LIBVNCSERVER_LIBRARIES} ) @@ -143,6 +144,7 @@ target_link_libraries(krfb-virtualmonitor KF6::I18n KF6::Notifications KF6::WindowSystem + KF6::Crash ) install (TARGETS krfb-virtualmonitor diff --git a/krfb/main-virtualmonitor.cpp b/krfb/main-virtualmonitor.cpp index 00e35cbe..dc0b2e72 100644 --- a/krfb/main-virtualmonitor.cpp +++ b/krfb/main-virtualmonitor.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -103,6 +104,8 @@ int main(int argc, char *argv[]) "protocol design")); KAboutData::setApplicationData(aboutData); + KCrash::initialize(); + QCommandLineParser parser; aboutData.setupCommandLine(&parser); const QCommandLineOption resolutionOption({ QStringLiteral("resolution") }, i18n("Logical resolution of the new monitor"), i18n("resolution")); diff --git a/krfb/main.cpp b/krfb/main.cpp index 45f9a2fe..6c6dc25f 100644 --- a/krfb/main.cpp +++ b/krfb/main.cpp @@ -23,6 +23,7 @@ #include "krfbdebug.h" #include +#include #include #include #include @@ -121,6 +122,8 @@ int main(int argc, char *argv[]) "protocol design")); KAboutData::setApplicationData(aboutData); + KCrash::initialize(); + QCommandLineParser parser; aboutData.setupCommandLine(&parser); const QCommandLineOption nodialogOption(QStringList{ QStringLiteral("nodialog") }, i18n("Do not show the invitations management dialog at startup"));