Commit 59ff5d37 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Kurt Hindenburg

Correctly trigger a Konsole window when using single process

Konsole was not opening a new tab when --new-tab is specified.
Even if we change the konsole settings to open in a unique PID,
we could open a new window sometimes.

See https://phabricator.kde.org/D25084 for KDBusAddons patch
discussion.
parent 78b8b4c7
......@@ -167,6 +167,8 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char *argv[])
if (!Konsole::KonsoleSettings::useSingleInstance()
&& !parser->isSet(QStringLiteral("new-tab"))) {
startupOption = KDBusService::Multiple;
} else if (Konsole::KonsoleSettings::useSingleInstance()) {
startupOption = KDBusService::Unique;
}
atexit(deleteQApplication);
......
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