summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-02-04 09:58:44 +0900
committerSlávek Banko <slavek.banko@axis.cz>2022-02-17 16:26:45 +0100
commite16086bb8a7ac0c5b50b0cb5441bda2aa5a211a6 (patch)
treed41399551b796efda2d9232e5760a299dad33104
parent46d17adfe56b7a7b53531fa785dd7662be7fd789 (diff)
downloadtdelibs-e16086bb8a7ac0c5b50b0cb5441bda2aa5a211a6.tar.gz
tdelibs-e16086bb8a7ac0c5b50b0cb5441bda2aa5a211a6.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--kdesu/process.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kdesu/process.cpp b/kdesu/process.cpp
index edd80c67d..b977a1342 100644
--- a/kdesu/process.cpp
+++ b/kdesu/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" );