[linux] be less specific about /usr prefix

This commit is contained in:
Darafei Praliaskouski 2013-07-17 06:52:56 +03:00 committed by Alex Zolotarev
parent 5806cfd6cb
commit 051d25e260

View file

@ -66,8 +66,8 @@ Platform::Platform()
else if (IsFileExistsByFullPath(path + "../share/eula.html"))
m_resourcesDir = path + "../share";
// installed version
else if (IsFileExistsByFullPath("/usr/share/MapsWithMe/eula.html"))
m_resourcesDir = "/usr/share/MapsWithMe";
else if (IsFileExistsByFullPath(path + "../share/MapsWithMe/eula.html"))
m_resourcesDir = path + "../share/MapsWithMe";
// all-nearby installs
else if (IsFileExistsByFullPath(path + "/eula.html"))
m_resourcesDir = path;