From f221d0f4303b8f012e63e3a4ee9ad47d8bb85563 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 7 Aug 2022 23:14:06 +0200 Subject: [PATCH] fix: Properly place config files in .../imhex/config on Linux --- lib/libimhex/source/helpers/fs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libimhex/source/helpers/fs.cpp b/lib/libimhex/source/helpers/fs.cpp index 55dc08b2c..8fe1580c1 100644 --- a/lib/libimhex/source/helpers/fs.cpp +++ b/lib/libimhex/source/helpers/fs.cpp @@ -137,11 +137,8 @@ namespace hex::fs { #endif - - for (auto &path : paths) { + for (auto &path : paths) path = path / "imhex"; - } - #if defined(OS_MACOS) @@ -175,6 +172,9 @@ namespace hex::fs { auto dataDirs = xdg::DataDirs(); std::copy(dataDirs.begin(), dataDirs.end(), std::back_inserter(paths)); + for (auto &path : paths) + path = path / "imhex"; + return paths; #endif }