diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-04 17:08:08 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-04 17:08:08 +0200 |
commit | e24ed4f70c22142029fa8e6cf5b874e8bc261bc3 (patch) | |
tree | 15b4361c8a91c65e4c411509163394574562745e /src | |
parent | ac30733800b69dcb1589adcba6a42b20fa763e8f (diff) | |
download | biboumi-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
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 { |