mirror of
https://github.com/KDE/konsole.git
synced 2026-06-11 15:35:09 -04:00
Set KONSOLE_DBUS_WINDOW for new sessions started with DBus
BUG: 382116
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user