renderdoc-1.27-env-home.patch (438B)
1 --- a/renderdoc/os/posix/linux/linux_stringio.cpp 2 +++ b/renderdoc/os/posix/linux/linux_stringio.cpp 3 @@ -595,11 +595,7 @@ rdcstr GetTempRootPath() 4 5 rdcstr GetAppFolderFilename(const rdcstr &filename) 6 { 7 - passwd *pw = getpwuid(getuid()); 8 - rdcstr homedir = pw ? pw->pw_dir : ""; 9 - 10 - if(homedir.empty()) 11 - homedir = Process::GetEnvVariable("HOME"); 12 + rdcstr homedir = Process::GetEnvVariable("HOME"); 13 14 if(homedir.empty()) 15 {