Skip to content
Snippets Groups Projects
Commit aaa55d9f authored by Vishesh Handa's avatar Vishesh Handa
Browse files

KRunner: Auto restart on crash

BUG: 336365
parent 9d5a7c51
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(KF5 REQUIRED COMPONENTS
Plasma DocTools Runner JsEmbed NotifyConfig Su NewStuff Wallet KCMUtils Baloo
IdleTime ThreadWeaver Declarative PlasmaQuick WebKit TextWidgets KDELibs4Support)
IdleTime ThreadWeaver Declarative PlasmaQuick WebKit TextWidgets KDELibs4Support Crash)
find_package(KF5 REQUIRED COMPONENTS SysGuard)
find_package(KF5 REQUIRED COMPONENTS Screen)
......
......@@ -30,6 +30,7 @@ target_link_libraries(krunner
KF5::DBusAddons
KF5::WindowSystem
KF5::ConfigWidgets
KF5::Crash
)
install(TARGETS krunner ${INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -34,6 +34,7 @@
#include <QAction>
#include <KLocalizedString>
#include <KDirWatch>
#include <KCrash/KCrash>
#include <kdeclarative/qmlobject.h>
......@@ -52,6 +53,8 @@ View::View(QWindow *parent)
setColor(QColor(Qt::transparent));
setFlags(Qt::FramelessWindowHint);
KCrash::setFlags(KCrash::AutoRestart);
m_config = KConfigGroup(KSharedConfig::openConfig("krunnerrc"), "General");
setFreeFloating(m_config.readEntry("FreeFloating", false));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment