aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/system.go')
-rw-r--r--internal/system.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/system.go b/internal/system.go
index 6467ea05..5f5e76bc 100644
--- a/internal/system.go
+++ b/internal/system.go
@@ -55,7 +55,7 @@ func CopyPaths(os System, v *Paths) {
fmsg.VPrintf("process share directory at %q", v.SharePath)
- if r, ok := os.LookupEnv(xdgRuntimeDir); !ok {
+ if r, ok := os.LookupEnv(xdgRuntimeDir); !ok || r == "" || !path.IsAbs(r) {
// fall back to path in share since fortify has no hard XDG dependency
v.RunDirPath = path.Join(v.SharePath, "run")
v.RuntimePath = path.Join(v.RunDirPath, "compat")