aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
Diffstat (limited to 'hst')
-rw-r--r--hst/paths.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/hst/paths.go b/hst/paths.go
new file mode 100644
index 00000000..31c14df2
--- /dev/null
+++ b/hst/paths.go
@@ -0,0 +1,11 @@
+package hst
+
+// Paths contains environment-dependent paths used by hakurei.
+type Paths struct {
+ // path to shared directory (usually `/tmp/hakurei.%d`)
+ SharePath string `json:"share_path"`
+ // XDG_RUNTIME_DIR value (usually `/run/user/%d`)
+ RuntimePath string `json:"runtime_path"`
+ // application runtime directory (usually `/run/user/%d/hakurei`)
+ RunDirPath string `json:"run_dir_path"`
+}