From 02bc291a920dac5bd75f322045e0722d54f45b9b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 7 Feb 2024 19:23:20 +0100 Subject: Skip xdg users dir comment lines --- src/Config.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Config.cpp b/src/Config.cpp index 2938338..191beb4 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -39,6 +39,9 @@ namespace QuickMedia { if(len < 2) continue; + if(line[0] == '#') + continue; + if(line[len - 1] == '\n') { line[len - 1] = '\0'; len--; -- cgit v1.2.3