Attempt to fix RUN_IN_PLACE autodetection on Linux
authorPerttu Ahola <celeron55@gmail.com>
Mon, 12 Mar 2012 22:51:33 +0000 (00:51 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 12 Mar 2012 22:51:33 +0000 (00:51 +0200)
src/porting.cpp

index f2ca601eb3098ad0d0a4dec210249b91c112a697..92615d77a2b9a21a77313f8b412bbd0b821e9623 100644 (file)
@@ -246,9 +246,9 @@ void initializePaths()
        path_share = std::string(buf) + "/../share/" + PROJECT_NAME;
        //path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
        if (!fs::PathExists(path_share)) {
-               dstream<<"WARNING: data path " << path_share << " not found!";
-               path_share = std::string(buf) + "/../data";
-               dstream<<" Trying " << path_share << std::endl;
+               dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\"";
+               path_share = std::string(buf) + "/../share";
+               dstream<<"WARNING: Using \""<<path_share<<"\" instead."<<std::endl;
        }
        
        path_user = std::string(getenv("HOME")) + "/." + PROJECT_NAME;