summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-01-23 15:57:08 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-01-24 12:23:32 (GMT)
commitdebfec2eb3c8ede89977b1f7d755b9f0d8a31e31 (patch)
treed8a2e6a38dae7a9764b4679b7577090790ac2517
parentf1c4879fd63ea250b6b08d98f701062f7c638635 (diff)
Add environment variable $KONSOLE_PROFILE_NAME
It records the name of the profile used in current tab/session. FEATURE: 227296 FIXED-IN:4.9
-rw-r--r--src/SessionManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SessionManager.cpp b/src/SessionManager.cpp
index 22b25de..266201a 100644
--- a/src/SessionManager.cpp
+++ b/src/SessionManager.cpp
@@ -466,6 +466,7 @@ void SessionManager::applyProfile(Session* session, const Profile::Ptr profile ,
// (if specified)
QStringList environment = profile->property<QStringList>(Profile::Environment);
environment << QString("PROFILEHOME=%1").arg(profile->defaultWorkingDirectory());
+ environment << QString("KONSOLE_PROFILE_NAME=%1").arg(profile->name());
session->setEnvironment(environment);
}