Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Synthesise notification badges for most applications (using messageTray) #1861

Closed
xalt7x opened this issue Oct 20, 2022 · 2 comments

Comments

@xalt7x
Copy link
Contributor

xalt7x commented Oct 20, 2022

Since most major free and commercial Desktop Environments switched to "Icons only" style for showing application windows on docks/panels , notification badges had become a very welcome feature, especially for the instant messages (chat) applications.
Unity DE had an API for badges. KDE Plasma and some GNOME extensions (including) still support it. But the problem is that application support is rather limited. Among chat applications I know only Telegram and Ferdium). And I highly doubt that most other Electron or even Chromium PWA based applications (like official versions of Google Chat or Microsoft Teams) will ever officially adopt Unity API. Not to mention most non-Ubuntu-based distros where it's barely supported.


I've seen that other GNOME extensions implemented Unity-independent badges/counters (see references).
Basically they add badges /counters for applications which send notifications to the GNOME Message Tray.

References:

@xalt7x xalt7x changed the title Universal support for notification badges Notification badges for most applications using messageTray Oct 20, 2022
@xalt7x xalt7x changed the title Notification badges for most applications using messageTray Notification badges for most applications (using messageTray) Oct 20, 2022
@vanvugt vanvugt changed the title Notification badges for most applications (using messageTray) Enhancement: Synthesise notification badges for most applications (using messageTray) Oct 21, 2022
@xalt7x
Copy link
Contributor Author

xalt7x commented Oct 21, 2022

Yeah, such issues pop from time to time in various places.
As it turned out the problem is even bigger with "sandboxing".
At least some Snap* & Flatpak** packages currently can't use UnityAPI even if application supports it

[*] signalapp/Signal-Desktop#4982
[**] flathub/com.discordapp.Discord#228

So at one hand this proposal is kind of a hack which upstream DE won't accept for obvious reasons,
at the other - not a single sign that this problem would be solved in a distant future.
Honestly as a user I would prefer having an optional "hack" :)
P.S. @vanvugt , thanks for keeping this thread alive!

3v1n0 added a commit to 3v1n0/dash-to-dock that referenced this issue Mar 7, 2023
Support monitoring notifications that are still around in the shell
notification tray and use it to increase the icon indicators count.

This is not visible in case we are in do-not-disturb mode.

Closes: micheleg#1861, micheleg#20
3v1n0 added a commit to 3v1n0/dash-to-dock that referenced this issue Mar 7, 2023
Support monitoring notifications that are still around in the shell
notification tray and use it to increase the icon indicators count.

This is not visible in case we are in do-not-disturb mode.

Closes: micheleg#1861, micheleg#20
@3v1n0 3v1n0 closed this as completed in 90fce4c Mar 7, 2023
@paroj
Copy link

paroj commented Mar 11, 2023

At least some Snap* & Flatpak** packages currently can't use UnityAPI even if application supports it

speaking of snap, this is an application packaging bug. I have used the UnityAPI in my snaps and it worked since snaps first appeared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants