Bug 367086 - Expose Notification badges via a nice framework API to allow apps to easily adopt it
Summary: Expose Notification badges via a nice framework API to allow apps to easily a...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: master
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 389791 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-17 10:52 UTC by Tomasz Dudzik
Modified: 2021-10-04 19:40 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Dudzik 2016-08-17 10:52:15 UTC
Hey! Since we have a new taskbar backend and icon-only task manager it would be very very cool, to show for example count of unread emails or updates available as a badge on the app icon, just like Android, iOS or macOS does on the dock or as we already have for dolphin for pending operation like copying files.

Reproducible: Always
Comment 1 Eike Hein 2016-08-23 18:47:11 UTC
Kai, we have this via your stuff right?
Comment 2 Kai Uwe Broulik 2016-08-23 20:10:00 UTC
An application can use the Unity API to provide a badge, unfortunately I don't see any application do that right now, not even Thunderbird (uses AppIndicator instead?). Since there's currently no KDE API (neither Unity API wrapper nor Window Metadata Framework) there probably won't be any widespread adoption for this in the mid term, at least for KDE Applications.

In any case, this would be the application's responsibility to properly propagate and nothing that will automatically just work.

(The reason copy jobs in Dolphin do work is that I hooked it to the jobviewserver so that any KJob with progress UI will also be indicated at the originating application, if possible)
Comment 3 Nate Graham 2017-09-09 20:56:26 UTC
FWIW< support using the com.canonical.Unity.LauncherEntry API is making into the popular GNOME extension Dash-To-Dock, which Ubuntu is using now: https://github.com/micheleg/dash-to-dock/pull/590

We might consider doing the same.
Comment 4 Kai Uwe Broulik 2017-09-09 21:03:45 UTC
We support this API since Plasma 5.6. This bug is more about KDE applications making use of it (so far only KDevelop does for showing compilation progress)
Comment 5 Nate Graham 2017-09-09 21:04:53 UTC
Oh sweet. So maybe we should close this as Fixed and track the issue with individual bugs for those apps that should use the API?
Comment 6 Kai Uwe Broulik 2017-09-09 21:07:49 UTC
I kept this bug open as a reminder to make a nice KDE Frameworks class to enable applications to easily make use of this API. Let's keep it. Thanks for cleaning up anyway :)
Comment 7 Nate Graham 2017-09-09 21:09:06 UTC
You're welcome! Can we rename and re-purpose the bug to track that task, at least?
Comment 8 Christoph Feck 2017-09-19 21:25:18 UTC
Kai, which part of frameworks do you aim at? We could indeed reassign this ticket.
Comment 9 Alexander Mentyu 2018-02-02 16:45:06 UTC
*** Bug 389791 has been marked as a duplicate of this bug. ***
Comment 10 Krasi Georgiev 2018-02-02 18:53:59 UTC
There is no way to link it globally with the notifications? 

It would be a struggle to convince every app to start using the api.  
Especially the big ones like Skype for example
Comment 11 Krasi Georgiev 2018-02-02 18:55:22 UTC
Maybe not even an icon change , but some flashing or colour change
Comment 12 Krasi Georgiev 2018-02-06 15:57:55 UTC
or maybe an an option to link a notification type/id to an icon change.

Is this api specific to KDE or once implemented it will work on different managers? Otherwise I don't see how software maintainers agreeing to support all different managers.

viber,skype,mail clients,riot, calendar
Comment 13 Krasi Georgiev 2018-03-02 08:30:49 UTC
bump
Comment 14 Kai Uwe Broulik 2018-03-02 09:29:34 UTC
No need to bump this bug report I'm well aware of this issue but haven't found the time to think about an architecture yet.

It could be linked to notifications (if the application sends along its desktop file name for which there is a field nowadays) but not sure what having a badge in the task manager alongside a notification popup help, it's not like chat message are (or should be) persistent. It's complicated..
Comment 15 Krasi Georgiev 2018-03-02 09:38:42 UTC
sorry for the bumps and thanks for the additional info at least I know that is something you are considering.
Comment 16 Bharadwaj Raju 2021-10-04 17:15:03 UTC
This kind of thing probably should be standardized in FreeDesktop instead of being this weird Unity-leftover private extension. No idea where one would begin proposing a FreeDesktop standard though.
Comment 17 Nate Graham 2021-10-04 19:40:19 UTC
Basically you submit a merge request containing your proposed spec here: https://gitlab.freedesktop.org/xdg/xdg-specs/

It can be helpful to discuss it on the xdg mailing list first though, just to try to get a bit of buy-in before beginning the work.