Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-12-07 09:23:45

jt1122
Member
Registered: 2021-03-26
Posts: 240

Restarting libcanberra

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

#2 2023-12-07 11:48:32

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,030

Re: Restarting libcanberra

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

#3 2023-12-07 12:02:59

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Restarting libcanberra

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

#4 2023-12-07 14:14:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,030

Re: Restarting libcanberra

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

#5 2023-12-07 14:25:23

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Restarting libcanberra

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

#6 2023-12-09 14:30:00

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Restarting libcanberra

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

#7 2023-12-09 16:26:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,030

Re: Restarting libcanberra

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

#8 2023-12-09 16:27:27

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Restarting libcanberra

yes, that's what I did: rename + login + logout.
old sound files still being used.

Offline

#9 2023-12-09 16:32:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,030

Re: Restarting libcanberra

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

#10 2023-12-09 16:45:55

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Restarting libcanberra

Thanks.

Deleted + logged out + logged in (obv) -> no change sad

Offline

#11 2023-12-10 00:35:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,030

Re: Restarting libcanberra

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

#12 2023-12-14 14:23:18

jt1122
Member
Registered: 2021-03-26
Posts: 240

Re: Restarting libcanberra

Deleting the cache file + rebooting did the trick. Thanks smile

Offline

Board footer

Powered by FluxBB