eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
991 stars 101 forks source link

[KDE Plasma] Attention tray icon never displays and notifications do not appear in history #174

Open mirenradia opened 2 years ago

mirenradia commented 2 years ago

Description My tray icon never changes to the "attention" one and, whilst notifications do appear when messages come in, these do not appear in the notification history. I have combined these into one issue since I think these may be related. I also wonder if the lack of notifications in the history is related to KDE Plasma not keeping notifications in the history if the desktop-entry is not configured correctly (see here).

To Reproduce

  1. Receive a message
  2. Check tray icon/notification history

Expected behavior The tray icon should change to the attention one and the notification should appear in the history.

Environment

eneshecan commented 2 years ago

Yeah, if DE doesn't store notifications, the attention icon goes back to normal after the notification is destroyed.

I see that it KDE Plasma checks desktop-entry hint to keep the notifications in history which we might need to implement i.e. as mentioned here

Sadi58 commented 1 year ago

No notification message or icon here: Debian Bookworm, KDE Plasma 5.26.3

wokawoka commented 1 year ago

I experience the same problem as OP, it makes it hard to know if I have received messages while I was away on KDE 5.24.4

Sadi58 commented 9 months ago

Currently, I have no issues with tray icon or notification messages (under Debian Testing/Trixie + KDE Plasma 5.27.9). However, I see an interesting behavior when a new message arrives - when it's in "Closed to Tray" position. A usual native notification popup windows displays the new message while the tray icon is pulsating with a red dot on its top right corner. After a while both disappear even if didn't yet open the normal app window, i.e. the tray-attention icon doesn't stay until the message is read in normal app window (probably assuming it has been read from the notification popup window?). This is a minor problem for me considering that some other WhatsApp clients are having problems showing any notification of new messages at all.

mdedetrich commented 3 months ago

Would also like to report that when running KDE via CachyOS (so using the AUR package here https://aur.archlinux.org/packages/whatsapp-for-linux) I don't get any KDE system level notifications