|
|
|
@ -55,12 +55,8 @@ boost::filesystem::path Singleton::create_config_path(const std::string &subfold |
|
|
|
return home; |
|
|
|
return home; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
boost::filesystem::path Singleton::config_dir() { return create_config_path(".juci/config"); } |
|
|
|
boost::filesystem::path Singleton::config_dir() { return create_config_path({".juci", "config"}); } |
|
|
|
boost::filesystem::path Singleton::log_dir() { return create_config_path(".juci/log"); } |
|
|
|
boost::filesystem::path Singleton::log_dir() { return create_config_path({".juci", "log"}); } |
|
|
|
boost::filesystem::path Singleton::style_dir() { return create_config_path(".juci/styles"); } |
|
|
|
boost::filesystem::path Singleton::style_dir() { return create_config_path({".juci", "styles"}); } |
|
|
|
std::string Singleton::config_json() { |
|
|
|
std::string Singleton::config_json() { return (Singleton::config_dir()/"config.json").string(); } |
|
|
|
auto conf_dir = Singleton::config_dir(); |
|
|
|
|
|
|
|
conf_dir /= "config.json"; // to ensure correct paths on windows
|
|
|
|
|
|
|
|
return conf_dir.string(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|