From f8c8204a913c386e1de832fcafd9ef04d1bae8e8 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 31 May 2016 06:26:08 +0200 Subject: [PATCH] fix(core): Expand tilde in config path --- src/lemonbuddy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lemonbuddy.cpp b/src/lemonbuddy.cpp index 4c0c77b5..17a41e9a 100644 --- a/src/lemonbuddy.cpp +++ b/src/lemonbuddy.cpp @@ -94,7 +94,7 @@ int main(int argc, char **argv) * Load configuration file */ if (cli::has_option("config")) { - config::load(cli::get_option_value("config")); + config::load(string::replace(cli::get_option_value("config"), "~", std::getenv("HOME"))); } else { auto xdg_config_home = std::getenv("XDG_CONFIG_HOME"); auto home = std::getenv("HOME");