From c2ac5eb78ddf5bfcceb0b999a80bcd5b3f3f0346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Tue, 15 Sep 2020 02:24:30 +0200 Subject: [PATCH] set config file if xdg is used --- src/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 55c571a..1cda757 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -12,13 +12,13 @@ Config::Config() { if(auto ptr = std::getenv("XDG_CONFIG_HOME")) { boost::filesystem::path config_dir(ptr); home_juci_path = config_dir / "juci"; - return; } else { boost::filesystem::path config_dir(home_path / "config"); home_juci_path = config_dir / "juci"; - return; } + juci_config_file = home_juci_path / "config.json"; + return; } if(home_path.empty()) throw std::runtime_error("Could not find home path");