From d87312de94019cd20e1fce717476e9eb9a14d173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Wed, 29 Jul 2015 17:15:20 +0200 Subject: [PATCH] Update config path --- src/config.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.cc b/src/config.cc index a4fc63a..f0d942b 100644 --- a/src/config.cc +++ b/src/config.cc @@ -6,7 +6,8 @@ MainConfig::MainConfig() { INFO("Reading config file"); - boost::property_tree::json_parser::read_json("config.json", cfg_); + std::string path(getenv("HOME")); // TODO WINDOWS + boost::property_tree::json_parser::read_json(path + "/.juci/config/config.json", cfg_); INFO("Config file read"); GenerateSource(); GenerateKeybindings();