From f0b1cf5f8de2168004c67d3e7318a772c644a627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 20 Feb 2024 19:39:31 +0100 Subject: [PATCH] notificationDaemon: Namespace private `sender-pid` hint The hint is a private implementation detail between the public and internal services, not something anybody else should set (*cough* libnotify *cough*). Prefix the name to hopefully make that clearer. Part-of: --- js/dbusServices/notifications/notificationDaemon.js | 2 +- js/ui/notificationDaemon.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/dbusServices/notifications/notificationDaemon.js b/js/dbusServices/notifications/notificationDaemon.js index f824f813d..473b0c4c0 100644 --- a/js/dbusServices/notifications/notificationDaemon.js +++ b/js/dbusServices/notifications/notificationDaemon.js @@ -100,7 +100,7 @@ export const NotificationDaemon = class extends ServiceImplementation { params[6] = { ...hints, - 'sender-pid': new GLib.Variant('u', pid), + 'x-shell-sender-pid': new GLib.Variant('u', pid), }; try { diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 1f68a1c54..4c6437a8c 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -162,7 +162,7 @@ class FdoNotificationDaemon { this._notifications[id] = ndata; let sender = invocation.get_sender(); - let pid = hints['sender-pid']; + const pid = hints['x-shell-sender-pid']; let source = this._getSource(appName, pid, ndata, sender, null); this._notifyForSource(source, ndata);