From dbcd6f383e45003493232bffabdfc8eb59d68afe Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 19 Dec 2003 07:53:18 +0000 Subject: [PATCH] Do'nt chdir($HOME) in Linux. It only makes it harder for the crash handler to find the binary (to re-exec), and we never actually use the pwd. --- stepmania/src/StepMania.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 57db08cbce..c7b0676705 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -125,10 +125,6 @@ static void ChangeToDirOfExecutable(const char *argv0) * written through RageFile. See also RageFileManager::RageFileManager. */ #if defined(_WIN32) chdir( DirOfExecutable + "/.." ); -#elif defined(LINUX) - const char *home = getenv("HOME"); - if( home ) - chdir( home ); #elif defined(DARWIN) chdir(DirOfExecutable + "/../../.."); #endif