diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-02 12:49:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 12:49:58 +0200 |
commit | 4cbc4774f149fa554f3cee3c47eb8794fce8d850 (patch) | |
tree | caa50756d6786b29901013f745130daeaf4cfad5 /pkg/machine/qemu/options_windows.go | |
parent | 9ab6449e36792734853eb59161ccd3bfe5d0d509 (diff) | |
parent | c1480b39a9e993aaa74caabf6d5c8bb865b78784 (diff) | |
download | podman-4cbc4774f149fa554f3cee3c47eb8794fce8d850.tar.gz podman-4cbc4774f149fa554f3cee3c47eb8794fce8d850.tar.bz2 podman-4cbc4774f149fa554f3cee3c47eb8794fce8d850.zip |
Merge pull request #15404 from arixmkii/win_compat2
Improved Windows compatibility for machine command
Diffstat (limited to 'pkg/machine/qemu/options_windows.go')
-rw-r--r-- | pkg/machine/qemu/options_windows.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/machine/qemu/options_windows.go b/pkg/machine/qemu/options_windows.go new file mode 100644 index 000000000..69652ee39 --- /dev/null +++ b/pkg/machine/qemu/options_windows.go @@ -0,0 +1,13 @@ +package qemu + +import ( + "os" +) + +func getRuntimeDir() (string, error) { + tmpDir, ok := os.LookupEnv("TEMP") + if !ok { + tmpDir = os.Getenv("LOCALAPPDATA") + "\\Temp" + } + return tmpDir, nil +} |