mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
Set up crash handling
This commit is contained in:
@@ -16,6 +16,7 @@ Dependencies:
|
|||||||
'frameworks/kwidgetsaddons': '@latest-kf6'
|
'frameworks/kwidgetsaddons': '@latest-kf6'
|
||||||
'frameworks/kwindowsystem': '@latest-kf6'
|
'frameworks/kwindowsystem': '@latest-kf6'
|
||||||
'frameworks/kxmlgui': '@latest-kf6'
|
'frameworks/kxmlgui': '@latest-kf6'
|
||||||
|
'frameworks/kcrash': '@latest-kf6'
|
||||||
'frameworks/kstatusnotifieritem': '@latest-kf6'
|
'frameworks/kstatusnotifieritem': '@latest-kf6'
|
||||||
'libraries/plasma-wayland-protocols': '@latest-kf6'
|
'libraries/plasma-wayland-protocols': '@latest-kf6'
|
||||||
'plasma/kwayland': '@latest-kf6'
|
'plasma/kwayland': '@latest-kf6'
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
|
|||||||
WindowSystem
|
WindowSystem
|
||||||
XmlGui
|
XmlGui
|
||||||
StatusNotifierItem
|
StatusNotifierItem
|
||||||
|
Crash
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ target_link_libraries (krfb
|
|||||||
KF6::WindowSystem
|
KF6::WindowSystem
|
||||||
KF6::XmlGui
|
KF6::XmlGui
|
||||||
KF6::StatusNotifierItem
|
KF6::StatusNotifierItem
|
||||||
|
KF6::Crash
|
||||||
${LIBVNCSERVER_LIBRARIES}
|
${LIBVNCSERVER_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -143,6 +144,7 @@ target_link_libraries(krfb-virtualmonitor
|
|||||||
KF6::I18n
|
KF6::I18n
|
||||||
KF6::Notifications
|
KF6::Notifications
|
||||||
KF6::WindowSystem
|
KF6::WindowSystem
|
||||||
|
KF6::Crash
|
||||||
)
|
)
|
||||||
|
|
||||||
install (TARGETS krfb-virtualmonitor
|
install (TARGETS krfb-virtualmonitor
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#include <QCommandLineOption>
|
#include <QCommandLineOption>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include <KCrash>
|
||||||
#include <KNotification>
|
#include <KNotification>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <KWindowSystem>
|
#include <KWindowSystem>
|
||||||
@@ -103,6 +104,8 @@ int main(int argc, char *argv[])
|
|||||||
"protocol design"));
|
"protocol design"));
|
||||||
KAboutData::setApplicationData(aboutData);
|
KAboutData::setApplicationData(aboutData);
|
||||||
|
|
||||||
|
KCrash::initialize();
|
||||||
|
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
aboutData.setupCommandLine(&parser);
|
aboutData.setupCommandLine(&parser);
|
||||||
const QCommandLineOption resolutionOption({ QStringLiteral("resolution") }, i18n("Logical resolution of the new monitor"), i18n("resolution"));
|
const QCommandLineOption resolutionOption({ QStringLiteral("resolution") }, i18n("Logical resolution of the new monitor"), i18n("resolution"));
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "krfbdebug.h"
|
#include "krfbdebug.h"
|
||||||
|
|
||||||
#include <KAboutData>
|
#include <KAboutData>
|
||||||
|
#include <KCrash>
|
||||||
#include <KDBusService>
|
#include <KDBusService>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
#include <KMessageBox>
|
#include <KMessageBox>
|
||||||
@@ -121,6 +122,8 @@ int main(int argc, char *argv[])
|
|||||||
"protocol design"));
|
"protocol design"));
|
||||||
KAboutData::setApplicationData(aboutData);
|
KAboutData::setApplicationData(aboutData);
|
||||||
|
|
||||||
|
KCrash::initialize();
|
||||||
|
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
aboutData.setupCommandLine(&parser);
|
aboutData.setupCommandLine(&parser);
|
||||||
const QCommandLineOption nodialogOption(QStringList{ QStringLiteral("nodialog") }, i18n("Do not show the invitations management dialog at startup"));
|
const QCommandLineOption nodialogOption(QStringList{ QStringLiteral("nodialog") }, i18n("Do not show the invitations management dialog at startup"));
|
||||||
|
|||||||
Reference in New Issue
Block a user