mirror of
https://github.com/KDE/konsole.git
synced 2026-06-12 16:05:45 -04:00
Add environment variable $KONSOLE_PROFILE_NAME
It records the name of the profile used in current tab/session. FEATURE: 227296 FIXED-IN:4.9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user