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
Kai, we have this via your stuff right?
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)
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.
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)
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?
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 :)
You're welcome! Can we rename and re-purpose the bug to track that task, at least?
Kai, which part of frameworks do you aim at? We could indeed reassign this ticket.
*** Bug 389791 has been marked as a duplicate of this bug. ***
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
Maybe not even an icon change , but some flashing or colour change
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
bump
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..
sorry for the bumps and thanks for the additional info at least I know that is something you are considering.
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.
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.