SYSCONFDIR and LinuxPath should work with different install prefixs

This commit is contained in:
Sebastian Wick 2014-09-19 03:15:28 +02:00
parent 144f6ca79a
commit 2ae8158ee9
3 changed files with 4 additions and 3 deletions

View file

@ -69,7 +69,7 @@ boost::filesystem::path LinuxPath::getCachePath() const
boost::filesystem::path LinuxPath::getGlobalConfigPath() const
{
boost::filesystem::path globalPath("/etc/");
boost::filesystem::path globalPath(INSTALL_PREFIX "/etc/");
return globalPath / mName;
}
@ -80,7 +80,7 @@ boost::filesystem::path LinuxPath::getLocalPath() const
boost::filesystem::path LinuxPath::getGlobalDataPath() const
{
boost::filesystem::path globalDataPath("/usr/share/games/");
boost::filesystem::path globalDataPath(INSTALL_PREFIX "/share/games/");
return globalDataPath / mName;
}