From e16086bb8a7ac0c5b50b0cb5441bda2aa5a211a6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 4 Feb 2022 09:58:44 +0900 Subject: 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 (cherry picked from commit 8ce8530d923a6c3fc8429a82e83976fdede21f18) --- kdesu/process.cpp | 1 + 1 file changed, 1 insertion(+) 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(*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" ); -- cgit v1.2.1