Commit eea4afef authored by David Faure's avatar David Faure

_old_XDG_CONFIG_HOME=XDG_CONFIG_HOME is funny but not very useful...

parent 228ab7bf
...@@ -31,7 +31,7 @@ ShellScript::ShellScript() ...@@ -31,7 +31,7 @@ ShellScript::ShellScript()
void ShellScript::writeEnvironmentVariables() void ShellScript::writeEnvironmentVariables()
{ {
foreach (const EnvVar &envvar, mEnvVars) { foreach (const EnvVar &envvar, mEnvVars) {
mScript += QLatin1String("_old_") + QLatin1String(envvar.first) + QLatin1String("=") + QLatin1String(envvar.first) + QLatin1String("\n"); mScript += QLatin1String("_old_") + QLatin1String(envvar.first) + QLatin1String("=$") + QLatin1String(envvar.first) + QLatin1String("\n");
mScript.append(QLatin1String(envvar.first)); mScript.append(QLatin1String(envvar.first));
mScript.append(QLatin1String("=\"")); mScript.append(QLatin1String("=\""));
QString value = QString::fromLocal8Bit(envvar.second); QString value = QString::fromLocal8Bit(envvar.second);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment