diff options
Diffstat (limited to 'internal/paths')
| -rw-r--r-- | internal/paths/paths.go | 4 |
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 } |
