cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
382 stars 41 forks source link

No notification sound on Linux desktop with Flatpak #184

Open Akselmo opened 1 year ago

Akselmo commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Jaffex commented 10 months ago

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

Akselmo commented 10 months ago

Same problem with version 3.1.0