Bug 417817 - Notification in latte stop working
Summary: Notification in latte stop working
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.9.8.1
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-18 07:15 UTC by rapiz
Modified: 2021-05-10 13:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (190.25 KB, image/png)
2020-02-18 07:15 UTC, rapiz
Details
latte-layout (13.80 KB, text/plain)
2020-02-18 12:57 UTC, rapiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rapiz 2020-02-18 07:15:53 UTC
Created attachment 126117 [details]
screenshot

SUMMARY
Notification in latte stop working.
Any notificatoin widget outside of latte, e.g. on the desktop or in the default panel, will work.

STEPS TO REPRODUCE
1. Add a notification widget in latte

OBSERVED RESULT
1. Not working
EXPECTED RESULT
1. Working

SOFTWARE/OS VERSIONS
OS: Arch
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Comment 1 Michail Vourlakos 2020-02-18 08:42:37 UTC
Latte can not do something about it, you need to report it to Plasma
Comment 2 Kai Uwe Broulik 2020-02-18 08:50:48 UTC
I've got a similar bug report the other day but couldn't figure out what exactly was causing this.
The only widget that should trigger this is the timer applet, but we also found there was another widget in System Tray. Do you have any third party widgets in your System Tray in plasmashell?
Comment 3 Michail Vourlakos 2020-02-18 09:36:17 UTC
(In reply to rapiz from comment #0)
> Created attachment 126117 [details]
> screenshot
> 
> SUMMARY
> Notification in latte stop working.
> Any notificatoin widget outside of latte, e.g. on the desktop or in the
> default panel, will work.
> 
> STEPS TO REPRODUCE
> 1. Add a notification widget in latte
> 
> OBSERVED RESULT
> 1. Not working
> EXPECTED RESULT
> 1. Working
> 
> SOFTWARE/OS VERSIONS
> OS: Arch
> KDE Plasma Version: 5.18.0
> KDE Frameworks Version: 5.67.0
> Qt Version: 5.14.1

Please send the Latte layout file causing the issue
Comment 4 Kai Uwe Broulik 2020-02-18 10:21:32 UTC
I think the problem is more a widget in plasmashell taking away the service from latte, not latte dock layout.
Comment 5 Michail Vourlakos 2020-02-18 11:43:52 UTC
(In reply to Kai Uwe Broulik from comment #4)
> I think the problem is more a widget in plasmashell taking away the service
> from latte, not latte dock layout.

I see, Kai do you know how we could gain more debug information? For example which plasmoid is using the notifications service and from which process?
Comment 6 rapiz 2020-02-18 11:45:25 UTC
(In reply to Kai Uwe Broulik from comment #2)
> I've got a similar bug report the other day but couldn't figure out what
> exactly was causing this.
> The only widget that should trigger this is the timer applet, but we also
> found there was another widget in System Tray. Do you have any third party
> widgets in your System Tray in plasmashell?

https://store.kde.org/p/998901
It seems to have a timer widget
Comment 7 rapiz 2020-02-18 12:57:58 UTC
Created attachment 126124 [details]
latte-layout

Here's my latte layout
Comment 8 Michail Vourlakos 2020-02-18 14:06:40 UTC
(In reply to rapiz from comment #6)
> (In reply to Kai Uwe Broulik from comment #2)
> > I've got a similar bug report the other day but couldn't figure out what
> > exactly was causing this.
> > The only widget that should trigger this is the timer applet, but we also
> > found there was another widget in System Tray. Do you have any third party
> > widgets in your System Tray in plasmashell?
> 
> https://store.kde.org/p/998901
> It seems to have a timer widget

So your Timer widget in your plasma panel takes over the Notification service. Either you will remove it from you plasma panel or you will use a Latte panel instead.
Comment 9 Chris Holland 2020-07-28 15:13:54 UTC
Figured I'd link this here:
https://github.com/Zren/plasma-applet-eventcalendar/issues/60

Oh, so I can't connect to the notification datasource in lattedock or Latte will think I'm running a notification server/GUI. Even though I only use it to send operation calls like the default Timer widget.

* https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/contents/ui/NotificationManager.qml
* https://github.com/KDE/kdeplasma-addons/blob/master/applets/timer/package/contents/ui/main.qml#L71

    var service = notificationSource.serviceForSource("notification");
    var operation = service.operationDescription("createNotification");
    service.startOperationCall(operation);

I'd already noticed that Desktop Widgets (in plasmashell) couldn't send notifications to the notification widget in latte-dock as I don't believe DataEngines sync between processes. This behavior can be observed by running the Timer widget in plasmoidviewer.

Anyways, my solution was first to use notify-send, but I've since written a notification.py script to also support actions/buttons.

* https://github.com/Zren/plasma-applet-eventcalendar/blob/master/package/contents/scripts/notification.py#L125

I'd been holding off using notification.py for Google Calendar events as I didn't want to send unvetted text (event summary) to the commandline via the executable DataEngine. I could create a whitelist of characters I guess... or blacklist quotes?
Comment 10 leftcrane 2021-05-10 13:41:39 UTC
I installed some tool called "octopi-notifier-frameworks" and experienced this issue. After removing it, I stopped receiving notifications. For whatever reason I had to reinstall knotifier and restart the relevant processes.

Seems like this should be considered a plasma bug. Given that notifications are a critical core process, they should not be broken so easily by a random plasmoid.