From 96a6575e23b5baebcdd38269b80f47cc02a2627e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 21 Mar 2025 16:50:15 +0100 Subject: Refactor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/hooks.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/hooks.c') diff --git a/src/hooks.c b/src/hooks.c index aaddd4f..e3abf44 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -1,4 +1,5 @@ -/* redshift-ng - Automatically adjust display colour temperature according the Sun +/*- + * redshift-ng - Automatically adjust display colour temperature according the Sun * * Copyright (c) 2009-2018 Jon Lund Steffensen * Copyright (c) 2014-2016, 2025 Mattias Andrée @@ -53,7 +54,7 @@ static size_t dirpathlen; static const struct env_path paths[] = { {0, "XDG_CONFIG_HOME", "/redshift-ng/hooks"}, {0, "XDG_CONFIG_HOME", "/redshift/hooks"}, -#ifdef WINDOWS +#if defined(WINDOWS) {0, "localappdata", "/redshift-ng/hooks"}, {0, "localappdata", "/redshift/hooks"}, #endif @@ -63,8 +64,10 @@ static const struct env_path paths[] = { {0, NULL, "/.config/redshift/hooks"}, {1, "XDG_CONFIG_DIRS", "/redshift-ng/hooks"}, {1, "XDG_CONFIG_DIRS", "/redshift/hooks"}, +#if !defined(WINDOWS) {0, "", "/etc/redshift-ng/hooks"}, {0, "", "/etc/redshift/hooks"} +#endif }; -- cgit v1.2.3-70-g09d2