diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 21:29:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 21:29:16 +0900 |
| commit | 5d18af00077ae6ba8ef686d1fd93d888f69681b2 (patch) | |
| tree | eff32422fe3ef095c6a915ccb41c2a10a06990f7 /internal/app/spruntime.go | |
| parent | 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 (diff) | |
container/fhs: move pathname constants
This allows referencing FHS pathnames without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spruntime.go')
| -rw-r--r-- | internal/app/spruntime.go | 5 |
1 files changed, 3 insertions, 2 deletions
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 } |
