summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-02-04 09:58:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-02-04 10:22:37 +0900
commit3fbf51569c858d3fb0975d329063c2621437b7c0 (patch)
treee9dd7d87981eef6956f859a4d1f7596622aeab67
parent96009c85e7cace26a6db6f1b26ae6a09ad2c909c (diff)
downloadtdelibs-3fbf51569c858d3fb0975d329063c2621437b7c0.tar.gz
tdelibs-3fbf51569c858d3fb0975d329063c2621437b7c0.zip
Fixed issue with ICEAuthority ownership stealing when programs were
run using tdesu in a user session. This resolves issue TDE/tde#77. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 8ce8530d923a6c3fc8429a82e83976fdede21f18)
-rw-r--r--tdesu/process.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tdesu/process.cpp b/tdesu/process.cpp
index ffc0cabf3..1d56128da 100644
--- a/tdesu/process.cpp
+++ b/tdesu/process.cpp
@@ -359,6 +359,7 @@ int PtyProcess::exec(const TQCString &command, const QCStringList &args)
putenv(const_cast<TQCString&>(*it).data());
}
unsetenv("TDE_FULL_SESSION");
+ unsetenv("XDG_RUNTIME_DIR");
// set temporarily LC_ALL to C, for su (to be able to parse "Password:")
const char* old_lc_all = getenv( "LC_ALL" );