(pathStr string)
| 169 | } |
| 170 | |
| 171 | func ReplaceHomeDir(pathStr string) string { |
| 172 | homeDir := GetHomeDir() |
| 173 | if pathStr == homeDir { |
| 174 | return "~" |
| 175 | } |
| 176 | if strings.HasPrefix(pathStr, homeDir+"/") { |
| 177 | return "~" + pathStr[len(homeDir):] |
| 178 | } |
| 179 | return pathStr |
| 180 | } |
| 181 | |
| 182 | func GetDomainSocketName() string { |
| 183 | return filepath.Join(GetWaveDataDir(), DomainSocketBaseName) |
no test coverage detected