()
| 230 | } |
| 231 | |
| 232 | func WinXApp() string { |
| 233 | ps, _ := exec.LookPath("powershell.exe") |
| 234 | cmd := exec.Command(ps, |
| 235 | "-NoProfile", |
| 236 | "-NonInteractive", |
| 237 | `(Get-AppxPackage | Where-Object -Property Name -Eq "SpotifyAB.SpotifyMusic").InstallLocation`) |
| 238 | |
| 239 | stdOut, err := cmd.CombinedOutput() |
| 240 | if err == nil { |
| 241 | return strings.TrimSpace(string(stdOut)) |
| 242 | } |
| 243 | |
| 244 | return "" |
| 245 | } |
| 246 | |
| 247 | func WinXPrefs() string { |
| 248 | ps, _ := exec.LookPath("powershell.exe") |
no outgoing calls
no test coverage detected