diff --git a/src/pkg/utils/utils.go b/src/pkg/utils/utils.go index 57d2b27a0..9d0c21dc8 100644 --- a/src/pkg/utils/utils.go +++ b/src/pkg/utils/utils.go @@ -444,6 +444,7 @@ func GetRuntimeDirectory(targetUser *user.User) (string, error) { if uid == 0 { runtimeDirectory = "/run" } else { + EnsureXdgRuntimeDirIsSet(uid) runtimeDirectory = os.Getenv("XDG_RUNTIME_DIR") }