noti
noti copied to clipboard
Custom sounds not working in High Sierra
Description
So last night, I upgraded to High Sierra. This morning, noti no longer respects the configuration for custom sounds and is now just playing the default sounds. I confirmed that the sounds are still present and working in the MacOS "Sound Effects" window. I confirmed that I am running noti v2.7.0 and I confirmed that the environment values are being set correctly
Steps to reproduce
- Add custom alert sound to mac (I use
TNGViewscreen) - Configure this sound in noti (
export NOTI_SOUND=TNGViewscreen) - Run
noti - Default MacOS sound plays
Version
MacOS High Sierra 10.13.1 go v1.9.2 noti v2.7.0
Hm. Supposedly, you should be able to place the sound file anywhere here:
~/Library/Sounds
/Library/Sounds
/Network/Library/Sounds
/System/Library/Sounds
But, /System is now blocked off by SIP. So maybe that's causing a problem here. :/
I tried passing a full path to a .aiff file in ~/Library/Sounds, but that didn't work either.
Mine are located in ~/Library/Sounds just for reference
Update: same problem in Monterey (macOS 12). I'm using the config file at ~/.noti.yaml with
nsuser:
soundName: Success
soundNameFail: TNGAlert1
which are an .aif file (soundName) and a .wav file (soundNameFail) in ~/Library/Sounds
According to the description here, noti only supports system sounds in /Library/System/Sounds (locked macOS volume).
Since both my selected sounds are in a different location, the result is that noti doesn't play any sound at all, even though Terminal.app has been set to "[p]lay sound for notification" in System Preferences > Notifications & Focus > Notifications.