aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/paths.go
blob: 7410d7a0cc81cf86e4da9f531b9381bac2c5a957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package hst

import "hakurei.app/container"

// Paths contains environment-dependent paths used by hakurei.
type Paths struct {
	// temporary directory returned by [os.TempDir] (usually `/tmp`)
	TempDir *container.Absolute `json:"temp_dir"`
	// path to shared directory (usually `/tmp/hakurei.%d`)
	SharePath *container.Absolute `json:"share_path"`
	// XDG_RUNTIME_DIR value (usually `/run/user/%d`)
	RuntimePath *container.Absolute `json:"runtime_path"`
	// application runtime directory (usually `/run/user/%d/hakurei`)
	RunDirPath *container.Absolute `json:"run_dir_path"`
}