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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3204>
(cherry picked from commit f0b1cf5f8d)
This commit is contained in:
Florian Müllner 2024-02-20 19:39:31 +01:00
parent 197b925952
commit 8b07e8e187
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -179,7 +179,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);