Commit cb8e1f7b authored by David Edmundson's avatar David Edmundson

[baloosearchrunner] Disable session management

As BalooSearchRunner regrettably is a QGuiApplication is connects to our
X SessionManager.

By default Qt apps behave like "applications" and this can end up on our
auto-restart list if the user saves their session.

Given this is DBus activated this doesn't make sense.
parent 783e856e
......@@ -49,6 +49,7 @@ int main (int argc, char **argv)
if (!config.fileIndexingEnabled()) {
return -1;
}
QCoreApplication::setAttribute(Qt::AA_DisableSessionManager);
QApplication::setQuitOnLastWindowClosed(false);
QApplication app(argc, argv); //KRun needs widgets for error message boxes
SearchRunner r;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment