aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 22:51:22 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 22:51:22 +0200
commit6221248b13f19b6b29700622451fdf3b7235ffc0 (patch)
tree7187243ddad2449026b6e8cd236f7009f403f758 /src
parent53de57ec2ee0af70ba59ec5fa4d30fc8a9102e9b (diff)
rc-logger.c: fix log path for user-modeHEADmaster
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
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 {