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:
parent
8b6e1fe896
commit
f0b1cf5f8d
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user