From 5d18af00077ae6ba8ef686d1fd93d888f69681b2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 21:29:16 +0900 Subject: container/fhs: move pathname constants This allows referencing FHS pathnames without importing container. Signed-off-by: Ophestra --- internal/app/spruntime.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/app/spruntime.go') diff --git a/internal/app/spruntime.go b/internal/app/spruntime.go index 05597181..be188853 100644 --- a/internal/app/spruntime.go +++ b/internal/app/spruntime.go @@ -3,6 +3,7 @@ package app import ( "hakurei.app/container" "hakurei.app/container/check" + "hakurei.app/container/fhs" "hakurei.app/hst" "hakurei.app/system" "hakurei.app/system/acl" @@ -27,13 +28,13 @@ func (s spRuntimeOp) toContainer(state *outcomeStateParams) error { xdgSessionType = "XDG_SESSION_TYPE" ) - state.runtimeDir = container.AbsFHSRunUser.Append(state.mapuid.String()) + state.runtimeDir = fhs.AbsRunUser.Append(state.mapuid.String()) state.env[xdgRuntimeDir] = state.runtimeDir.String() state.env[xdgSessionClass] = "user" state.env[xdgSessionType] = "tty" _, runtimeDirInst := s.commonPaths(state.outcomeState) - state.params.Tmpfs(container.AbsFHSRunUser, 1<<12, 0755) + state.params.Tmpfs(fhs.AbsRunUser, 1<<12, 0755) state.params.Bind(runtimeDirInst, state.runtimeDir, container.BindWritable) return nil } -- cgit v1.3.1