From f33aea9ff9c5eb678c6f1de59132aab69a59757e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 2 Nov 2025 12:22:32 +0900 Subject: internal/env: cleaner runtime dir fallback This now places rundir inside the fallback runtime dir, so special case in internal/outcome is avoided. Signed-off-by: Ophestra --- internal/env/env.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/env/env.go') diff --git a/internal/env/env.go b/internal/env/env.go index ebb816d6..cdacb203 100644 --- a/internal/env/env.go +++ b/internal/env/env.go @@ -29,12 +29,11 @@ func (env *Paths) Copy(v *hst.Paths, userid int) { if env.RuntimePath == nil { // fall back to path in share since hakurei has no hard XDG dependency - v.RunDirPath = v.SharePath.Append("run") - v.RuntimePath = v.RunDirPath.Append("compat") + v.RuntimePath = v.SharePath.Append("compat") } else { v.RuntimePath = env.RuntimePath - v.RunDirPath = env.RuntimePath.Append("hakurei") } + v.RunDirPath = v.RuntimePath.Append("hakurei") } // CopyPaths returns a populated [Paths]. -- cgit v1.3.1