You are not logged in.
Pages: 1
Hi,
How do I restart libcanberra so it will use updated system sounds (new .ogg or .wav files) w/o rebooting or a logout + login ?
Thanks
Offline
Try resetting the sound theme:
xfconf-query -c xsettings -p /Net/SoundThemeName -s SOUNDTHEME
...where SOUNDTHEME is the name of your sound theme.
If that doesn't work, set it to something else (or blank) and then back again:
xfconf-query -c xsettings -p /Net/SoundThemeName -s ""
xfconf-query -c xsettings -p /Net/SoundThemeName -s SOUNDTHEME
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks.
Tried both options. The sound theme is correctly shown but the new sound files aren't being used.
I didn't login + logout.
Last edited by jt1122 (2023-12-07 12:09:32)
Offline
Perhaps you can provide more information reqarding the sound theme you are using and the new sound files you've added. Please note that libcanberra only supports certain sound events and not all of them currently work (libcanberra hasn't been updated since 2012).
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
The theme is a collection of sounds in /usr/share/sounds/custom-theme/stereo
wIindow-unminimized is was symlinked to a.ogg .
now it's symlinked to /home/myfiles/b.ogg but the notification is still a.ogg
Offline
I've even renamed the sound theme folder to "blah" but the old sounds keep playing which is weird.
canberra-gtk-play -i window-minimized
Failed to play sound: File or data not found
so it seems like libcanberra isn't the one playing the sounds.
What else can it be?.
Thanks
Offline
Perhaps the sound files are cached? If you rename the folder and log out and back in again, does the sound still play?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
yes, that's what I did: rename + login + logout.
old sound files still being used.
Offline
Looks like it caches to an ~/.cache/event-sound-cache.* file. Try deleting it.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks.
Deleted + logged out + logged in (obv) -> no change
Offline
Looks like a log out isn't enough. You have to reboot. Delete that cache file and reboot.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Deleting the cache file + rebooting did the trick. Thanks
Offline
Pages: 1
[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 560.11 KiB (Peak: 576.95 KiB) ]