Commit 51cc49e9 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Set KONSOLE_DBUS_WINDOW for new sessions started with DBus

BUG: 382116
parent 34585192
......@@ -1099,6 +1099,8 @@ int ViewManager::newSession()
Profile::Ptr profile = ProfileManager::instance()->defaultProfile();
Session *session = SessionManager::instance()->createSession(profile);
session->addEnvironmentEntry(QStringLiteral("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(managerId()));
this->createView(session);
session->run();
......@@ -1120,6 +1122,8 @@ int ViewManager::newSession(const QString &profile, const QString &directory)
Session *session = SessionManager::instance()->createSession(profileptr);
session->setInitialWorkingDirectory(directory);
session->addEnvironmentEntry(QStringLiteral("KONSOLE_DBUS_WINDOW=/Windows/%1").arg(managerId()));
this->createView(session);
session->run();
......
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