Skip to content

Commit 0cd95ca

Browse files
committed
Use a different strategy on windows
1 parent cfe32ca commit 0cd95ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

killbrowser_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func findBrowser(process string) ([]byte, error) {
77
}
88

99
func killBrowser(process string) ([]byte, error) {
10-
cmd := exec.Command("pskill", process)
10+
cmd := exec.Command("Taskkill", "/F", "/IM", process+".exe")
1111
return cmd.Output()
1212
}
1313

0 commit comments

Comments
 (0)