Skip to content

Commit

Permalink
Merge pull request #61 from nervo/patch-1
Browse files Browse the repository at this point in the history
re-fix quoting in macOS alert
  • Loading branch information
gen2brain authored May 16, 2024
2 parents c7bb2cd + 29dc800 commit 9c00667
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 9c00667

Please sign in to comment.