gen2brain / beeep

Go cross-platform library for sending desktop notifications, alerts and beeps
BSD 2-Clause "Simplified" License
1.43k stars 89 forks source link

Use terminal-notifier or alerter when available #41

Open sagikazarmark opened 3 years ago

sagikazarmark commented 3 years ago

The above tools yield much nicer notifications/alerts in my opinion and as far as I can tell, they also allow using non-bundled icons:

gen2brain commented 3 years ago

What are the chances that the user will have that installed? The first app seems to be packaged as a bundle, so I guess it will not be in PATH. It can be added if these are popular apps that users can install easily, but I will not be able to test it for some time until I fix my VM.

sagikazarmark commented 3 years ago

I think these are the most popular alternatives to notify-send on macOS. Using them might need some sort of configuration (or an alias or a wrapper shell script).

brandonwkipp commented 3 years ago

@gen2brain They don't necessarily need to be installed on the user's machine, for instance gosxnotifier embeds the binary for terminal-notifier.

gen2brain commented 3 years ago

@brandonwkipp As discussed in some other issues, I don't like that approach, it embeds the foreign app/binary in source code. If it is installed it will be used, otherwise, it will just fall back to osascript.