From 3c6dca2f873b14c1b046db993580a90c2af323c8 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 27 Nov 2020 14:33:42 +0100 Subject: runtime: set XDG_* env variables if missing regression introduced when moving to Podman 2.0. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1877228 Signed-off-by: Giuseppe Scrivano --- libpod/runtime.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libpod/runtime.go b/libpod/runtime.go index 792492db6..df3dfae2b 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -162,6 +162,10 @@ func newRuntimeFromConfig(ctx context.Context, conf *config.Config, options ...R runtime.config = conf + if err := SetXdgDirs(); err != nil { + return nil, err + } + storeOpts, err := storage.DefaultStoreOptions(rootless.IsRootless(), rootless.GetRootlessUID()) if err != nil { return nil, err -- cgit v1.2.3-54-g00ecf