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>
This commit is contained in:
Florian Müllner 2024-02-20 19:39:31 +01:00
parent 8b6e1fe896
commit f0b1cf5f8d
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

@ -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);