Summary: | Simple badge/indicator of unread notifications | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Yevhen Popok <xalt7x.service> |
Component: | Task Manager and Icons-Only Task Manager widgets | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | nate |
Priority: | NOR | ||
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Reference for a simple indicator of unread notifications |
Description
Yevhen Popok
2022-11-02 15:30:58 UTC
This has exactly the same problem that I brought up in the Bug 460760: the proposal is a hack that requires Plasma to respond to unpredictable application changes. Some apps use system notifications, some don't. Some update their own counts dynamically, some don't. The correct thing is for apps to implement the existing API. For those that haven't yet, then someone should submit patches to do so. It's not rocket science. :) I can understand how it's frustrating to have to use apps that weren't coded properly and don't use the API that was made specifically for this, but someone just needs to fix that. (In reply to Nate Graham from comment #1) Thanks for the explanation. If you don't mind I still have a few questions :) > Some apps use system notifications, some don't. That's true (e.g. Viber) and naturally they don't show-up at the notification history > Some update their own counts dynamically, some don't. I'm not sure but looks like that's a problem for https://bugs.kde.org/show_bug.cgi?id=460785 as well. I didn't inspect how RocketBar deal with this. Possible workaround is to remove badge when user switch to the application window. Thanks in advance! > Possible workaround is to remove badge when user switch to the application window.
That occurred to me too, but it's quite possible to switch to an app window without actually reading all the unread things. For example, a chat client with 8 unread chatrooms. If simply switching to the window cleared the badge on the Task Manager button, this would make the Task Manager button inconsistent with the actual status, which is that you still have 8 unread chats.
This is why we need apps to opt into using the correct API for this. If we try to approximate it ourselves, we'll be chasing down edge case bugs like this forever, some of which are not actually solvable.
|