From 5ad1afe641f603cabdf9897349c102d9038fe82f Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 23 Feb 2026 19:48:02 -0600 Subject: Use locate-library fallback for sound file path resolution Adds locate-library as a fallback between load-file-name and buffer-file-name for more robust path resolution in MELPA installs. --- chime.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chime.el b/chime.el index 7007fe0..6463ba9 100644 --- a/chime.el +++ b/chime.el @@ -492,7 +492,10 @@ When non-nil, plays the sound file specified in `chime-sound-file'." (defcustom chime-sound-file (expand-file-name "sounds/chime.wav" - (file-name-directory (or load-file-name buffer-file-name))) + (file-name-directory + (or load-file-name + (locate-library "chime") + buffer-file-name))) "Path to sound file to play when notifications are displayed. Defaults to the bundled chime.wav file. Set to nil to disable sound completely (no sound file, no beep). -- cgit v1.2.3