Skip to content

Commit

Permalink
Merge pull request gen2brain#34 from stefanb/patch-1
Browse files Browse the repository at this point in the history
beep_darwin: beep without requiring special system events permissions
  • Loading branch information
gen2brain authored Jan 31, 2020
2 parents ece0cb6 + 1226476 commit 1f001e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beep_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ func Beep(freq float64, duration int) error {
return err
}

cmd := exec.Command(osa, "-e", `tell application "System Events" to beep`)
cmd := exec.Command(osa, "-e", `beep`)
return cmd.Run()
}

0 comments on commit 1f001e9

Please sign in to comment.