Bug 464750 - Notifications: Share data and settings with a global singleton
Summary: Notifications: Share data and settings with a global singleton
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.26.5
Platform: Ubuntu Linux
: NOR task
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 466647 (view as bug list)
Depends on:
Blocks: 469085 485383
  Show dependency treegraph
 
Reported: 2023-01-24 17:18 UTC by PRIZ ;]
Modified: 2024-10-18 09:29 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Notifications should be listed, and there are notifications as indicated by the white 'clear' button (57.82 KB, image/png)
2023-01-24 17:18 UTC, PRIZ ;]
Details
No notifications (9.51 KB, image/png)
2023-02-22 09:36 UTC, Latufara
Details
Shrink to bell (9.84 KB, image/png)
2023-02-22 09:37 UTC, Latufara
Details
Notifications reappear (18.99 KB, image/png)
2023-02-22 09:39 UTC, Latufara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PRIZ ;] 2023-01-24 17:18:56 UTC
Created attachment 155562 [details]
Notifications should be listed, and there are notifications as indicated by the white 'clear' button

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When putting the notification widget on the desktop (not the system tray icon), no notifications show up

STEPS TO REPRODUCE
1. Place the notification widget on the desktop
2. Resize it such that it shows notifications or says "No unread notifications"
3. Clear all notifications
4. Receive a notification

OBSERVED RESULT
No notifications are displayed, but the 'clear all' button does respond correctly

EXPECTED RESULT
Notifications should be listed like the one shown by clicking the system tray icon

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.19.0-24-generic; Kubuntu 22.10
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.6
Graphics Platform: X11

ADDITIONAL INFORMATION
Kubuntu Backports PPA for Impish and Jammy
Comment 1 Nate Graham 2023-01-24 20:55:35 UTC
Do you also have another Notifications widget active in your System Tray, or on another screen?
Comment 2 PRIZ ;] 2023-01-24 21:07:16 UTC
Yes, I have a notifications widget on the system tray.

However, this issue is recent (within a couple months), this setup did work previously.
Comment 3 Latufara 2023-02-19 09:00:31 UTC
Same here: since Plasma 5.26 the notification history is no longer shown in the widget. I use it in a sidebar and I have no other notifications widget active in system tray. As reported by PRIZ ;] only the button to clean notifications works (it gets brighter after a notification)
Comment 4 Nate Graham 2023-02-21 18:44:09 UTC
Probably a case of the history model being per-widget rather than global, and this doesn't work when you have multiple widgets. Similar to Bug 443036 and Bug 423625.
Comment 5 Latufara 2023-02-22 09:17:10 UTC
If I resize the widget (first small until it shows only the bell, then I enlarge it) the notifications appear, after clear all, the widget stops working again.
Comment 6 Latufara 2023-02-22 09:36:54 UTC
Created attachment 156597 [details]
No notifications
Comment 7 Latufara 2023-02-22 09:37:50 UTC
Created attachment 156598 [details]
Shrink to bell
Comment 8 Latufara 2023-02-22 09:39:01 UTC
Created attachment 156599 [details]
Notifications reappear
Comment 9 Nate Graham 2023-04-28 03:30:28 UTC
*** Bug 466647 has been marked as a duplicate of this bug. ***
Comment 10 Grymas 2024-03-09 16:23:47 UTC
I have the same bug, notification widget seems to work until emptied then never refreshes/updates when new notifications arrive. If I resize it (to the bell and back) or recreate it, the notifications show up.

Kubuntu 23.10
KDE Plasma 5.27.8
Frameworks 5.111.0
Qt 5.15.10
Kernel 6.5.0-25-generic (64 bit)
X11
Comment 11 Luca Brian 2024-10-18 09:29:47 UTC
I have the same problem on a fresh install:

KDE Neon 6.2
KDE Plasma 6.2.1
KDE Framework 6.7.0
Qt 6.7.2
Kernel Version 6.8.0-47-generic
Wayland