fix: Properly place config files in .../imhex/config on Linux

This commit is contained in:
WerWolv 2022-08-07 23:14:06 +02:00
parent 1aa497cb7b
commit f221d0f430
1 changed files with 4 additions and 4 deletions

View File

@ -137,11 +137,8 @@ namespace hex::fs {
#endif #endif
for (auto &path : paths)
for (auto &path : paths) {
path = path / "imhex"; path = path / "imhex";
}
#if defined(OS_MACOS) #if defined(OS_MACOS)
@ -175,6 +172,9 @@ namespace hex::fs {
auto dataDirs = xdg::DataDirs(); auto dataDirs = xdg::DataDirs();
std::copy(dataDirs.begin(), dataDirs.end(), std::back_inserter(paths)); std::copy(dataDirs.begin(), dataDirs.end(), std::back_inserter(paths));
for (auto &path : paths)
path = path / "imhex";
return paths; return paths;
#endif #endif
} }