diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-02-07 19:22:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-02-07 19:22:37 +0100 |
commit | ab8742a75d76bb35375e41320f81701c717a9fa2 (patch) | |
tree | 0a4821587466f4f0afb7e508c7cef8c95274656e /src/config.hpp | |
parent | 8c92489212dd661fb3b32cae5c71b53ed8b2e348 (diff) |
Skip xdg users dir comment lines
Diffstat (limited to 'src/config.hpp')
-rw-r--r-- | src/config.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp index 097627a..b82f4fb 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -114,6 +114,9 @@ static std::map<std::string, std::string> get_xdg_variables() { if(len < 2) continue; + if(line[0] == '#') + continue; + if(line[len - 1] == '\n') { line[len - 1] = '\0'; len--; |