summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-05-04 17:08:08 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-05-04 17:08:08 +0200
commite24ed4f70c22142029fa8e6cf5b874e8bc261bc3 (patch)
tree15b4361c8a91c65e4c411509163394574562745e
parentac30733800b69dcb1589adcba6a42b20fa763e8f (diff)
downloadbiboumi-e24ed4f70c22142029fa8e6cf5b874e8bc261bc3.tar.gz
biboumi-e24ed4f70c22142029fa8e6cf5b874e8bc261bc3.tar.bz2
biboumi-e24ed4f70c22142029fa8e6cf5b874e8bc261bc3.tar.xz
biboumi-e24ed4f70c22142029fa8e6cf5b874e8bc261bc3.zip
Make sure XDG_CONFIG_HOME is absolute, as per XDG basedir spec.
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 80462cb..4a207b9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -71,7 +71,7 @@ int main(int ac, char** av)
else
{
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";
else
{