Skip to content

Commit

Permalink
re-fix quoting in macOS alert
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo authored May 16, 2024
1 parent c7bb2cd commit 29dc800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alert_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Alert(title, message, appIcon string) error {
return err
}

script := fmt.Sprintf(`display notification "%s" with title "%s" sound name "default"`, message, title)
script := fmt.Sprintf("display notification %q with title %q sound name \"default\"", message, title)
cmd := exec.Command(osa, "-e", script)
return cmd.Run()
}

0 comments on commit 29dc800

Please sign in to comment.