From a2a5460316e933fcc0c40e1362ed4a9c101d6e1c Mon Sep 17 00:00:00 2001 From: werdl Date: Mon, 19 May 2025 19:23:13 +0100 Subject: search /usr/local/share/sxwmrc --- src/parser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser.c b/src/parser.c index 1ceb7e0..a2de128 100644 --- a/src/parser.c +++ b/src/parser.c @@ -160,6 +160,11 @@ int parser(Config *cfg) goto found; } + snprintf(path, sizeof path, "/usr/local/share/sxwmrc"); + if (access(path, R_OK) == 0) { + goto found; + } + found: FILE *f = fopen(path, "r"); if (!f) { -- cgit v1.2.3