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