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:
@@ -125,10 +125,6 @@ static void ChangeToDirOfExecutable(const char *argv0)
|
|||||||
* written through RageFile. See also RageFileManager::RageFileManager. */
|
* written through RageFile. See also RageFileManager::RageFileManager. */
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
chdir( DirOfExecutable + "/.." );
|
chdir( DirOfExecutable + "/.." );
|
||||||
#elif defined(LINUX)
|
|
||||||
const char *home = getenv("HOME");
|
|
||||||
if( home )
|
|
||||||
chdir( home );
|
|
||||||
#elif defined(DARWIN)
|
#elif defined(DARWIN)
|
||||||
chdir(DirOfExecutable + "/../../..");
|
chdir(DirOfExecutable + "/../../..");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user