From debfec2eb3c8ede89977b1f7d755b9f0d8a31e31 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Mon, 23 Jan 2012 23:57:08 +0800 Subject: [PATCH] Add environment variable $KONSOLE_PROFILE_NAME It records the name of the profile used in current tab/session. FEATURE: 227296 FIXED-IN:4.9 --- src/SessionManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SessionManager.cpp b/src/SessionManager.cpp index 22b25de29..266201a66 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(Profile::Environment); environment << QString("PROFILEHOME=%1").arg(profile->defaultWorkingDirectory()); + environment << QString("KONSOLE_PROFILE_NAME=%1").arg(profile->name()); session->setEnvironment(environment); }