Bug 407757 - Certain notifications all display in the centre of the screen on top of each other
Summary: Certain notifications all display in the centre of the screen on top of each ...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.15.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 408612 409004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-20 12:03 UTC by Richard Ullger
Modified: 2020-01-23 10:02 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kdeconnect notifications displayed on login (551.46 KB, image/png)
2019-05-20 21:34 UTC, Richard Ullger
Details
Telegram notification from mobile (kdeconnect) and desktop (564.86 KB, image/png)
2019-05-21 14:32 UTC, Richard Ullger
Details
Dolphin notification appearing centre screen (376.33 KB, image/png)
2019-05-22 21:18 UTC, Richard Ullger
Details
plasmanotifyrc (42 bytes, text/plain)
2019-05-23 13:14 UTC, Richard Ullger
Details
Plasma login with a panel configured (18.28 KB, image/png)
2019-05-23 14:53 UTC, Richard Ullger
Details
D21365 Login with panel (12.52 KB, image/png)
2019-05-23 17:07 UTC, Richard Ullger
Details
D21365 login with latte (13.14 KB, image/png)
2019-05-23 17:10 UTC, Richard Ullger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Ullger 2019-05-20 12:03:08 UTC
STEPS TO REPRODUCE
1. Set Notifications->Popup position->Choose custom position and select a screen position in the popup window
2. Ensure phone contains notifications
3. Pair phone to laptop

OBSERVED RESULT
Notifications received from the phone all display in the centre of the screen on top of each other in quick succession. Subsequent new notifications are also displayed in the centre of the screen.

EXPECTED RESULT
Notifications should display in the configured screen position and scroll up/down the screen. This was the case in plasma 5.15.5

SOFTWARE/OS VERSIONS
Linux: 5.1.3.arch1-1
KDE Plasma Version: 5.15.90
KDE Frameworks Version: 5.58.0
Qt Version: 5.13.0beta3
community/kdeconnect 1.3.4-1

ADDITIONAL INFORMATION
Standard system notifications are not affected.

I had set the screen position in plasma 5.15.5 but after upgrading to 5.15.90 the setting had changed to 'Near the notification icon'.
Comment 1 David Edmundson 2019-05-20 12:19:20 UTC
Can you attach a screenshot please
Comment 2 Richard Ullger 2019-05-20 21:34:56 UTC
Created attachment 120204 [details]
kdeconnect notifications displayed on login

The notifications never display clearly but are feint and flicker.
Comment 3 Richard Ullger 2019-05-20 22:30:02 UTC
In the case of telegram notifications, the system notification from telegram-desktop displays in the configured location (bottom right of the screen in my case) and a kdeconnect notification from telegram mobile displays in the centre of the screen. In this case the kdeconnect notification is clearly displayed. I will attach an screenshot when I get an example.
Comment 4 Richard Ullger 2019-05-21 14:32:31 UTC
Created attachment 120222 [details]
Telegram notification from mobile (kdeconnect) and desktop

The desktop notification displays in the configured position but the kdeconnect notification displays centre screen.
Comment 5 Richard Ullger 2019-05-22 21:18:29 UTC
Created attachment 120259 [details]
Dolphin notification appearing centre screen

So, during the course of using my laptop yesterday, kdeconnect notifications started appearing in the configured position (bottom right of screen). No settings were changed that may have caused this.

Today on login the kdeconnect notifications are appearing centre screen again but in addition all system notifications are appearing centre screen. Screenshot of dolphin notification attached.
Comment 6 Kai Uwe Broulik 2019-05-23 07:58:16 UTC
Can you paste your ~/.config/plasmanotifyrc file, please.

Perhaps on login the screen geometry changes or something which might get the system confused. But it does work with the default "near notification icon" setting?
Comment 7 Kai Uwe Broulik 2019-05-23 08:56:41 UTC
Are you using Latte Dock?
Comment 8 Richard Ullger 2019-05-23 13:10:54 UTC
(In reply to Kai Uwe Broulik from comment #7)
> Are you using Latte Dock?

Yes. Strangely, on login today, the plasma desktop totally froze. Killing latte-dock brought it back.
Comment 9 Richard Ullger 2019-05-23 13:14:03 UTC
Created attachment 120267 [details]
plasmanotifyrc
Comment 10 Richard Ullger 2019-05-23 14:53:28 UTC
Created attachment 120269 [details]
Plasma login with a panel configured

latte-dock autostart disabled. Panel configured. On login, notifications are blacked out with the artefacts as seen in the screenshot. Notification content appears after some seconds. kdeconnect notifications display centre screen stacked on top of each other and bottom right scrolling up the screen. New kdeconnect notifications display bottom right. System notifications so far display bottom right.
Comment 11 Kai Uwe Broulik 2019-05-23 15:35:18 UTC
Please try https://phabricator.kde.org/D21365
Comment 12 Richard Ullger 2019-05-23 16:17:16 UTC
(In reply to Kai Uwe Broulik from comment #11)
> Please try https://phabricator.kde.org/D21365

Is this a drop-in replacement for Globals.qml or does plasma-workspace need a rebuild?
Comment 13 Nate Graham 2019-05-23 16:27:56 UTC
Since it's QML, no recompilation is needed. You can just replace yours with that one and then restart Plasma (`plasmashell --replace`)
Comment 14 Richard Ullger 2019-05-23 17:07:47 UTC
Created attachment 120272 [details]
D21365 Login with panel

Notification content appears some seconds after login. They also start to appear bottom right of screen. New kdeconnect notifications appear centre screen and then visibly slide down to the bottom right of screen.
Comment 15 Richard Ullger 2019-05-23 17:10:33 UTC
Created attachment 120273 [details]
D21365 login with latte

System notification appeared blank centre screen before content being filled in. Notifications bottom right were kdeconnect notifications, content subsequently filled in after some seconds.
Comment 16 Richard Ullger 2019-05-23 17:20:46 UTC
D21365 with latte dock, new kdeconnect notifications are appearing centre screen only and then fade out. They are not appearing bottom right, nor sliding to bottom right of screen from the centre.
Comment 17 Kai Uwe Broulik 2019-05-24 06:59:20 UTC
I just tried on a neon dev unstable ISO from yesterday and my patch fixes Latte dock there.
Comment 18 Richard Ullger 2019-05-24 10:08:53 UTC
I'm using Arch with the kde_unstable repo plus your D21365 patch and still see the
'D21365 login with latte' screenshot. I've enabled all testing repos but that makes no difference.
Comment 19 Richard Ullger 2019-05-24 10:20:05 UTC
My phone accumulates quite a few notifications. Every time my phone connects to my laptop, kdeconnect sends all notifications. This results in notifications being displayed for the next couple of minutes covering up a quarter of the screen. Not really acceptable.

Also, if I haven't dismissed the notifications on the phone, the next time the phone connects, all notifications are sent again.

Is there a way to suppress this and just receive new notifications?

I've unchecked 'Show in history' for kdeconnect but this makes no difference.

Does this warrant a new bug report?
Comment 20 Richard Ullger 2019-05-24 10:23:31 UTC
Following on from comment 19, I can view all notifications on the phone by clicking on the kdeconnect icon in the system tray.
Comment 21 Kai Uwe Broulik 2019-05-24 10:44:14 UTC
Can you disable kdeconnect for now so we can investigate what the bug in notifications is? Kdeconnect spamming you with notifications is completely unrelated to the positioning bug we're trying to figure out here.
Comment 22 Richard Ullger 2019-05-24 12:24:23 UTC
With kdeconnect unpaired, notifications correctly display in the configured location (bottom right).
Comment 23 Kai Uwe Broulik 2019-06-12 17:53:25 UTC
*** Bug 408612 has been marked as a duplicate of this bug. ***
Comment 24 avlas 2019-06-12 19:11:50 UTC
Is the location issue related to https://bugs.kde.org/show_bug.cgi?id=408566#c5?
Comment 25 Kai Uwe Broulik 2019-06-23 14:36:51 UTC
*** Bug 409004 has been marked as a duplicate of this bug. ***
Comment 26 Richard Ullger 2020-01-23 10:02:13 UTC
Retested in plasma v5.17.90 kde-unstable repo. Notifications no longer display centre screen with or without kdeconnect paired.