After an update today, all system notification sounds quit working. Audio from applications and web sites worked, just the system sounds were silent. Even weirder, in System Settings | Application and System Notifications | Manage Notifications, events that had sounds still listed the sound files -- even though they didn't play.
After some investigation, I discovered that all the paths to the sound files were missing. There are two ways to fix this: hand-edit each and every entry in the GUI, or come up with a quick command line alternative. I determined the command-line was the way to go. Here it is:
Sounds are defined system-wide in /usr/share/kde4/apps/*/*.notifyrc files. Whenever you alter a setting, KDE makes a copy of that app's .notifyrc file and stores it in your profile. Because the system files lack the missing paths, I figured it was better to fix those, which is what the above command will do.
After some investigation, I discovered that all the paths to the sound files were missing. There are two ways to fix this: hand-edit each and every entry in the GUI, or come up with a quick command line alternative. I determined the command-line was the way to go. Here it is:
Code:
for j in /usr/share/kde4/apps/*/*.notifyrc; do sudo sed -i 's_Sound=_Sound=file:///usr/share/sounds/_g' $j; done
Comment