summaryrefslogtreecommitdiff
path: root/internal/paths/paths.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/paths/paths.go')
-rw-r--r--internal/paths/paths.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/paths/paths.go b/internal/paths/paths.go
index f512ad1..c7bdd94 100644
--- a/internal/paths/paths.go
+++ b/internal/paths/paths.go
@@ -44,6 +44,10 @@ func (pm *PathManager) RuntimeBaseDir() string {
return pm.RuntimeBaseOverride
}
+ if envDir := os.Getenv("WG_WRAP_HOST_RUNTIME_BASE_DIR"); envDir != "" {
+ return envDir
+ }
+
if envDir := os.Getenv("XDG_RUNTIME_DIR"); envDir != "" {
return envDir
}