Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom sounds not working in High Sierra #64

Open
KingKrimmson opened this issue Nov 15, 2017 · 3 comments
Open

Custom sounds not working in High Sierra #64

KingKrimmson opened this issue Nov 15, 2017 · 3 comments

Comments

@KingKrimmson
Copy link

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

@variadico variadico added the bug label Dec 13, 2017
@variadico
Copy link
Owner

variadico commented Dec 13, 2017

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.

@KingKrimmson
Copy link
Author

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

@JayBrown
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants