mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
197b925952
commit
8b07e8e187
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue