Commit e24ed4f7 authored by Link Mauve's avatar Link Mauve

Make sure XDG_CONFIG_HOME is absolute, as per XDG basedir spec.

parent ac307338
...@@ -71,7 +71,7 @@ int main(int ac, char** av) ...@@ -71,7 +71,7 @@ int main(int ac, char** av)
else else
{ {
const char* xdg_config_home = getenv("XDG_CONFIG_HOME"); const char* xdg_config_home = getenv("XDG_CONFIG_HOME");
if (xdg_config_home) if (xdg_config_home && xdg_config_home[0] == '/')
Config::filename = std::string{xdg_config_home} + "/" "biboumi" "/" "biboumi.cfg"; Config::filename = std::string{xdg_config_home} + "/" "biboumi" "/" "biboumi.cfg";
else else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment