--- a/BBGE/Core.cpp Wed Jun 09 19:38:21 2010 +0100 +++ a/BBGE/Core.cpp Wed Jun 09 23:52:53 2010 +0100 @@ -1000,25 +1000,10 @@ debugLog(path); chdir(path); #elif defined(BBGE_BUILD_UNIX) - char path[PATH_MAX]; - // always a symlink to this process's binary, on modern Linux systems. - const ssize_t rc = readlink("/proc/self/exe", path, sizeof (path)); - if ( (rc == -1) || (rc >= sizeof (path)) ) - { - // error! - debugLog("readlink"); - } - else - { - path[rc] = '\0'; - char *ptr = strrchr(path, '/'); - if (ptr != NULL) - { - *ptr = '\0'; - debugLog(path); - chdir(path); - } - } + std::string path("/usr/share/games/"); + path.append(appName); + debugLog(path); + chdir(path.c_str()); #endif #ifdef BBGE_BUILD_WINDOWS #endif