summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwerdl <werdl_is_cool@outlook.com>2025-05-19 19:23:13 +0100
committerwerdl <werdl_is_cool@outlook.com>2025-05-19 19:23:13 +0100
commita2a5460316e933fcc0c40e1362ed4a9c101d6e1c (patch)
treef109f41e6cdf992fa70c1428047a1f50708a1fe2
parentccfba6ecdc63df1e1c2df37fa9b48ca98cee71be (diff)
search /usr/local/share/sxwmrc
-rw-r--r--src/parser.c5
1 files changed, 5 insertions, 0 deletions
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) {