--- source/unix/sys_unix.c 2007-06-14 13:15:32.834511771 -0400 +++ source/unix/sys_unix.c 2007-06-14 13:16:54.505565372 -0400 @@ -234,7 +234,7 @@ path = FS_NextPath (path); if (!path) return NULL; // couldn't find one anywhere - snprintf (name, MAX_OSPATH, "%s/%s", path, gamename); + snprintf (name, MAX_OSPATH, "%s/%s", "GENTOO_LIBDIR", gamename); /* skip it if it just doesn't exist */ fp = fopen(name, "rb"); @@ -308,6 +308,7 @@ saved_euid = geteuid(); seteuid(getuid()); + chdir("GENTOO_DATADIR"); Qcommon_Init(argc, argv); fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);