cinny-desktop icon indicating copy to clipboard operation
cinny-desktop copied to clipboard

No notification sound on Linux desktop with Flatpak

Open Akselmo opened this issue 2 years ago • 4 comments

Describe the bug

Notification sounds do not play. Not sure if it's a flatpak permission problem, or if cinny just doesn't play any sounds.

Reproduction

  1. Open Cinny
  2. Ensure notification sounds are on
  3. Get a notification from a chat
  4. Notification does not play sound

Expected behavior

Notifications should play sound when enabled, or if the platform Cinny is being ran on does not support sounds for some reason, Cinny should play it's own sound effect like the web client.

Platform and versions

1. Fedora KDE
2. Cinny 2.2.6
3. My own homeserver, matrix.akselmo.dev
4. Flatpak

Additional context

It's possible the sound effect does not play because of KDE notifications for some reason not listening to sound hints, if this works on other Linux desktops.

Akselmo avatar Jul 07 '23 09:07 Akselmo

Seems if I try new Audio("tauri://localhost/assets/notification-3d932661.ogg").play() in console, I get NotAllowedError

result: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

status: "rejected"

Promise Prototype

catch(rejectionHandler)

constructor: function()

finally()

then(resolvedHandler, rejectionHandler)

Symbol(Symbol.toStringTag): "Promise"

Object Prototype

__defineGetter__(propertyName, getterFunction)

__defineSetter__(propertyName, setterFunction)

__lookupGetter__(propertyName)

__lookupSetter__(propertyName)

constructor: function()

hasOwnProperty(propertyName)

isPrototypeOf(property)

propertyIsEnumerable(propertyName)

toLocaleString()

toString()

valueOf()

Akselmo avatar Jul 07 '23 09:07 Akselmo

Could probably be fixed by updating tauri? https://github.com/tauri-apps/wry/pull/913

Akselmo avatar Jul 07 '23 09:07 Akselmo

I can confirm this issue without any DE present.

Sound from within cinny does work, but notifications don't make a sound.

I'm using i3 window manager with pulseaudio

Jaffex avatar Oct 25 '23 17:10 Jaffex

Same problem with version 3.1.0

Akselmo avatar Oct 27 '23 21:10 Akselmo