mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kinit: do not insert empty environment variables into the klauncher environment
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7cfcbc3775
commit
922b4b44d1
1 changed files with 4 additions and 0 deletions
|
@ -229,6 +229,10 @@ int KLauncherAdaptor::kdeinit_exec_with_workdir(const QString &app, const QStrin
|
|||
|
||||
void KLauncherAdaptor::setLaunchEnv(const QString &name, const QString &value)
|
||||
{
|
||||
if (name.isEmpty()) {
|
||||
kWarning() << "attempting to set empty environment variable to" << value;
|
||||
return;
|
||||
}
|
||||
kDebug() << "setting environment variable" << name << "to" << value;
|
||||
m_environment.insert(name, value);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue