aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
Diffstat (limited to 'hst')
-rw-r--r--hst/hst.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/hst/hst.go b/hst/hst.go
index 6549450c..d9c1168b 100644
--- a/hst/hst.go
+++ b/hst/hst.go
@@ -12,16 +12,18 @@ import (
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`)
+ // path to shared directory (usually `/tmp/hakurei.%d`, [Info.User])
SharePath *container.Absolute `json:"share_path"`
- // XDG_RUNTIME_DIR value (usually `/run/user/%d`)
+ // XDG_RUNTIME_DIR value (usually `/run/user/%d`, uid)
RuntimePath *container.Absolute `json:"runtime_path"`
// application runtime directory (usually `/run/user/%d/hakurei`)
RunDirPath *container.Absolute `json:"run_dir_path"`
}
type Info struct {
+ // User is the userid according to hsu.
User int `json:"user"`
+
Paths
}