From 8ce8530d923a6c3fc8429a82e83976fdede21f18 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 4 Feb 2022 09:58:44 +0900 Subject: [PATCH] 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 --- tdesu/process.cpp | 1 + 1 file changed, 1 insertion(+) 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(*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" );