From ab8742a75d76bb35375e41320f81701c717a9fa2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 7 Feb 2024 19:22:37 +0100 Subject: Skip xdg users dir comment lines --- src/config.hpp | 3 +++ 1 file changed, 3 insertions(+) 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 get_xdg_variables() { if(len < 2) continue; + if(line[0] == '#') + continue; + if(line[len - 1] == '\n') { line[len - 1] = '\0'; len--; -- cgit v1.2.3