mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +08:00
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 <gscrivan@redhat.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user