mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07:00
Set up crash handling
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -42,6 +42,7 @@ find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
|
||||
WindowSystem
|
||||
XmlGui
|
||||
StatusNotifierItem
|
||||
Crash
|
||||
)
|
||||
|
||||
find_package(X11 REQUIRED)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <QCommandLineOption>
|
||||
#include <QDebug>
|
||||
#include <QTimer>
|
||||
#include <KCrash>
|
||||
#include <KNotification>
|
||||
#include <KLocalizedString>
|
||||
#include <KWindowSystem>
|
||||
@@ -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"));
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "krfbdebug.h"
|
||||
|
||||
#include <KAboutData>
|
||||
#include <KCrash>
|
||||
#include <KDBusService>
|
||||
#include <KLocalizedString>
|
||||
#include <KMessageBox>
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user