Quaternion icon indicating copy to clipboard operation
Quaternion copied to clipboard

Support displaying notifications as per Matrix spec

Open as400l opened this issue 3 years ago • 12 comments

I have no notifications of any kind. Using Manjaro, KDE 5.20.2.

as400l avatar Nov 10 '20 10:11 as400l

Did it work before? The code for notifications has not seen changes over rather long time.

KitsuneRal avatar Nov 10 '20 11:11 KitsuneRal

Actually they didn't work for me ever. I do get notifications on mentions but nothing else. Even when notifications are set to Full in GUI. This might have something to do with running Plasma on Wayland ?

as400l avatar Nov 13 '20 09:11 as400l

Sorry for 2 months of silence, the issue fell off the radars.

Actually, Quaternion only supports notifying on mentions as of now - other cases would highlight the rooms in the room list but won't cause a notification (AFAIR). It seems there's no issue about that, so if you don't mind, I'll rename this one accordingly.

KitsuneRal avatar Jan 24 '21 21:01 KitsuneRal

Hi The last comment is @KitsuneRal added this to Version 0.0.9.6 in Quaternion 1 on 24 Jan Is there anything which should be already implemented in 0.0.95RCx?

Because, I have been testing 0.0.95 RC2 and RC4. There is no notification displayed when I am tagged (being or not being in the room). There isn't any number or sign on the Quaternion icon in the KDE systray either.

On the room list panel, there is though a number in case of unread message in the room.

I am on Mageia 8 x64, KDE.

Would you need more information, just ask for.

squid-f avatar Sep 13 '21 14:09 squid-f

Just in case - 0.0.96 is the new 0.0.9.6, it's not that 0.0.9.6 has been already delivered. There's no substantial development within 0.0.95 to improve the situation with notifications, sorry. That being said, what is happening in your case rather seems like missing connectivity to your systray icon - if you have highlights occurring in Quaternion user interface, you should be getting highlights from the systray. Where does your Quaternion come from - local package? flatpak? self-built?

KitsuneRal avatar Sep 13 '21 14:09 KitsuneRal

Thanks @KitsuneRal for clarifying the versions. I have mixed up things, indeed.

I have built the Quaternion package based on Fedora spec. I will then install the Flatpak version and test it.

Will keep you posted.

squid-f avatar Sep 13 '21 16:09 squid-f

Hi. I have tested the flatpak version for 1 day. It exhibits the same behavior as the package I have built using Fedora spec: *No notification even if tagged and not displaying this room. *No systray change based on room changes (see attached).

KDE Plasma: 5.20.4 Frameworks: 5.76.0 Qt: 5.15.2

quaternion_no_notif

squid-f avatar Sep 14 '21 06:09 squid-f

The key question, AIUI, is which Qt it is built against. If I build my Quaternion against the system-wide Qt, I see notifications pop up; if it's a non-system Qt, the icon is there but notifications are not displayed. Also, make sure you have sni-qt or a similarly named package with Qt bindings to StatusNotifierItem DBus interfaces. Without it, notifications won't come up either.

KitsuneRal avatar Sep 14 '21 06:09 KitsuneRal

Regarding the Flatpak, check the Quaternion package permissions (if you're not accustomed to command line Flatpak manipulations, you might want to install Flatseal that does it in a GUI). Quaternion should have access to org.kde.StatusNotifierWatcher and org.freedesktop.Notifications.

KitsuneRal avatar Sep 14 '21 06:09 KitsuneRal

Hi Qt versions are the same (5.15.2), between the system and the package used to build; if it was what you meant? sni-qt was not installed (Qt4 package, correct?). Libnotify is installed though. I installed sni-qt and rebooted; no change.

Flatpak is installed through Discover. Other apps don't have issues to display notifications. Sorry, I don't know how to check access to org.kde.StatusNotifierWatcher and org.freedesktop.Notifications.

squid-f avatar Sep 14 '21 07:09 squid-f

Ok, apparently I'm behind on my packaging knowledge - forget about sni-qt. I also see now that the Flatpak on my machine doesn't display notifications though it used to - an investigation is in order. Let's take this to a separate issue as it is not directly related to the current one. I'll post the link here once I figure whether the problem is with the Quaternion code or it's a Flatpak packaging issue.

KitsuneRal avatar Sep 14 '21 09:09 KitsuneRal

I just compiled the latest git master and I don't get any notifications from Quaternion.

OS: Void Linux DE: KDE Plasma 5.24 Qt: 5.15.2

Vistaus avatar Mar 14 '22 16:03 Vistaus