aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openrc/rc-logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openrc/rc-logger.c b/src/openrc/rc-logger.c
index dad141ea..30d1269a 100644
--- a/src/openrc/rc-logger.c
+++ b/src/openrc/rc-logger.c
@@ -253,7 +253,7 @@ rc_logger_open(const char *level)
if ((env = getenv("XDG_STATE_HOME")))
xasprintf(&logfile, "%s/openrc.log", env);
else if ((env = getenv("HOME")))
- xasprintf(&logfile, "%s/openrc.log", env);
+ xasprintf(&logfile, "%s/.local/state/openrc.log", env);
else
eerrorx("XDG_STATE_HOME and HOME unset.");
} else {