https://bugs.kde.org/show_bug.cgi?id=417817

Chris Holland <zrenf...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zrenf...@gmail.com

--- Comment #9 from Chris Holland <zrenf...@gmail.com> ---
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?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to