You are not logged in.

#1 2024-06-06 09:51:31

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 364

[SOLVED] Enable sound notifications on chromium

hello,
from what I read on Google, on Chrome for Windows a sound is played when you receive a website notifications (like youtube, twitter, instagram, twitch...)
but this doesn't happen to me on Linux. why? Maybe it depends on the DE/WM?
I don't use any DE, only openbox + lxpanel

use this site to test notifications:
https://davidwalsh.name/demo/notifications-api.php
Does it make a sound to you?

Last edited by quellen (2024-06-06 18:38:19)


sorry for my bad english

Offline

#2 2024-06-06 10:40:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,082

Re: [SOLVED] Enable sound notifications on chromium

Your notification daemon needs to do/support this. Which notification daemon are you running? Also from a cursory googler the notification emitter (chromium) would have to send a hint that it wants audio enabled on this notification, which I'm gathering doesn't happen.

Last edited by V1del (2024-06-06 10:49:36)

Offline

#3 2024-06-06 10:50:12

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 364

Re: [SOLVED] Enable sound notifications on chromium

V1del wrote:

Your notification daemon needs to do/support this. Which notification daemon are you running?

Thanks, I didn't even know notification daemons existed. now I have installed notification-daemon and created the "org.freedesktop.Notifications.service" file as written on the wiki:
https://wiki.archlinux.org/title/Deskto … Standalone

but the sound still isn't there, I even tried restarting.

$ cat /usr/share/dbus-1/services/org.freedesktop.Notifications.service
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon-1.0/notification-daemon

EDIT:
i have tried mate-notification-daemon xfce4-notifyd and lxqt-notificationd but no one has the sound

Last edited by quellen (2024-06-06 11:00:03)


sorry for my bad english

Offline

#4 2024-06-06 12:22:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,082

Re: [SOLVED] Enable sound notifications on chromium

The question would be whether they can be configured to emit a default sound regardless of what the application sets. The chromium notification integration does not configure it's notification with a sound.

Offline

#5 2024-06-06 12:38:09

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 364

Re: [SOLVED] Enable sound notifications on chromium

V1del wrote:

The question would be whether they can be configured to emit a default sound regardless of what the application sets. The chromium notification integration does not configure it's notification with a sound.

I also tried to start a notification with this command found online:

notify-send -i xfce4-logo -h "string:sound-name:bell" test test

but the sound is not heard


sorry for my bad english

Offline

#6 2024-06-06 18:37:00

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 364

Re: [SOLVED] Enable sound notifications on chromium

i have SOLVED installing snotify from AUR (to install it I had to remove pulseaudio and install pipewire-pulse), and adding this on my ~/.config/openbox/autostart:

lxqt-notificationd &
snotify &

Last edited by quellen (2024-06-06 18:43:52)


sorry for my bad english

Offline

Board footer

Powered by FluxBB