aboutsummaryrefslogtreecommitdiffstats
path: root/src/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hooks.c')
-rw-r--r--src/hooks.c7
1 files changed, 5 insertions, 2 deletions
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 <jonlst@gmail.com>
* Copyright (c) 2014-2016, 2025 Mattias Andrée <m@maandree.se>
@@ -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
};