From 6221248b13f19b6b29700622451fdf3b7235ffc0 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 21 Jul 2024 22:51:22 +0200 Subject: rc-logger.c: fix log path for user-mode Signed-off-by: Anna (navi) Figueiredo Gomes --- src/openrc/rc-logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3