MCPcopy
hub / github.com/spicetify/cli / WinXApp

Function WinXApp

src/utils/config.go:232–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230}
231
232func 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
247func WinXPrefs() string {
248 ps, _ := exec.LookPath("powershell.exe")

Callers 3

EnableDevToolsFunction · 0.92
FindAppPathFunction · 0.85
FindPrefFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected