noti icon indicating copy to clipboard operation
noti copied to clipboard

Custom sounds not working in High Sierra

Open KingKrimmson opened this issue 8 years ago • 3 comments

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

  1. Add custom alert sound to mac (I use TNGViewscreen)
  2. Configure this sound in noti (export NOTI_SOUND=TNGViewscreen)
  3. Run noti
  4. Default MacOS sound plays

Version

MacOS High Sierra 10.13.1 go v1.9.2 noti v2.7.0

KingKrimmson avatar Nov 15 '17 16:11 KingKrimmson

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.

variadico avatar Dec 13 '17 17:12 variadico

Mine are located in ~/Library/Sounds just for reference

KingKrimmson avatar Dec 13 '17 18:12 KingKrimmson

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.

JayBrown avatar Oct 23 '22 13:10 JayBrown