aboutsummaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-07 19:22:37 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-07 19:22:37 +0100
commitab8742a75d76bb35375e41320f81701c717a9fa2 (patch)
tree0a4821587466f4f0afb7e508c7cef8c95274656e /src/config.hpp
parent8c92489212dd661fb3b32cae5c71b53ed8b2e348 (diff)
Skip xdg users dir comment lines
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp3
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--;