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.
This commit is contained in:
Glenn Maynard
2003-12-19 07:53:18 +00:00
parent f9c301e248
commit dbcd6f383e
-4
View File
@@ -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