element-hq / element-desktop

A glossy Matrix collaboration client for desktop.
https://element.io
GNU Affero General Public License v3.0
1.15k stars 261 forks source link

Desktop notifications not working on Arch Linux #765

Open CIAvash opened 3 years ago

CIAvash commented 3 years ago

Description

I'm not getting any desktop notifications. I'm using Bspwm window manager on Arch Linux. The Element window is in a specific workspace. I don't get notifications whether I'm in that workspace or another workspace.

I don't know from which version it stopped showing notifications, but in the past I would get them, but not always(a hit and miss behavior).

Steps to reproduce

There is no desktop notifications.

I only notice a marker in the Element tray icon while receiving a message in a one-to-one chat. I don't think I ever got that tray icon marker while getting mentioned in an IRC channel.

Screenshot of my notification settings: Element - 2021-02-28 13:50:42

Version information

HarHarLinks commented 3 years ago

It may be interesting to know which notification server you use. Do notifications work in other programs?

Notifications are working for me with mako 1.4.1-2 and Element Nightly version: 2021022601.

t3chguy commented 3 years ago

Would also be good to know if Notifications work for you in other Modern Electron apps

CIAvash commented 3 years ago

It may be interesting to know which notification server you use. Do notifications work in other programs?

I'm using Dunst notification daemon. Yes, notifications from other programs work.

Would also be good to know if Notifications work for you in other Modern Electron apps

I no longer use Signal, but when I did, it did show notifications.

jryans commented 3 years ago

I am not aware of much that has changed here in recent Element versions, so you may need report this upstream to Electron. It would be worth testing some other Electron app to check with its notifications currently work.

CIAvash commented 3 years ago

As I said Signal's notifications work. Tutanota's notifications also work, but not always!

I also tested the code shown in the Electron's Notifications tutorial, and it worked.

One difference between signal-desktop package on Arch Linux and the element-desktop package is that element-desktop uses the electron package from the Arch repo, But signal-desktop apparently comes with electron.

But I tested the notifications tutorial with the electron package and it worked. :shrug:

barathrm commented 3 years ago

FWIW, for me element's notifications only work when manually starting (gnome's?) notification-daemon, which is not my native notification daemon. Which means that to have element notifications working I now have 2 notification daemons running, one of which I can't configure easily. Not ideal.

I wouldn't care much about not having notifications, but element also freezes on receiving notifications unless the daemon is running.

https://github.com/vector-im/element-desktop/issues/674 https://github.com/electron/electron/issues/21912

HeCodes2Much commented 3 years ago

when i am focused on any other window other then element this is my log. https://pastebin.com/raw/RyRbMUbt

but if im focued on element even if its not the channel that i get the notification from then it does nothing

CIAvash commented 3 years ago

Notifications suddenly started working. I don't know if it's related but the only thing I did that might be related to it is removing electron and electron11 packages. Element-desktop depends on electron12 on Arch Linux.