We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19cb4a0 commit 03a3054Copy full SHA for 03a3054
1 file changed
pkg/user/user.go
@@ -5,6 +5,7 @@ import (
5
"os"
6
"os/user"
7
"path/filepath"
8
+ "runtime"
9
"strconv"
10
11
"github.com/containers/podman-bootc/pkg/config"
@@ -57,6 +58,15 @@ func (u *User) DefaultIdentity() string {
57
58
}
59
60
func (u *User) RunDir() string {
61
+ if runtime.GOOS == "darwin" {
62
+ tmpDir, ok := os.LookupEnv("TMPDIR")
63
+ if !ok {
64
+ tmpDir = "/tmp"
65
+ }
66
+
67
+ return filepath.Join(tmpDir, config.ProjectName, "run")
68
69
70
return filepath.Join(xdg.RuntimeDir, config.ProjectName, "run")
71
72
0 commit comments