-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libnotify: use 3rd party patch to support replacing a notification #68407
Conversation
What is the upstream status of the patch? |
In general, I think we should remain as close to upstream as possible, both to reduce maintenance effort and to avoid confusion. For that reason, I am not very fond of applying random feature patches downstream. |
It hasn't been submitted.
I'm with you on this. I would argue though that this patch is so simple that there really isn't much of a maintenance burden. |
Could you try submitting it? |
Done - pinged you as well. |
Can link to the upstream submission in here? |
2bd313e
to
ded9954
Compare
}) | ||
( | ||
fetchpatch { | ||
url = "https://gitlab.gnome.org/GNOME/libnotify/commit/55eb69247fe2b479ea43311503042fc03bf4e67d.patch"; | ||
sha256 = "1hlb5b7c5axiyir1i5j2pi94bm2gyr1ybkp6yaqy7yk6iiqlvv50"; | ||
} | ||
) | ||
|
||
# add support for replacing an existing notification | ||
( | ||
fetchpatch { | ||
url = "https://launchpadlibrarian.net/105791133/print-and-replace-id-v3.patch"; | ||
sha256 = "1lfk5msv81brz7f7srxi4s4l02nasskzmpq0b9ch8hbn79z86g0b"; | ||
} | ||
) | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we format this like how it was before? This looks like what nixpkgs-fmt tries to do which is a bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, upstream is open to accepting the change there, so I'd rather handle this properly where it belongs.
Will be handled upstream, see: https://gitlab.gnome.org/GNOME/libnotify/merge_requests/10 |
Great 👍 |
Motivation for this change
While the dbus notification interface supports replacing an existing notification,
notify-send
does not.This uses a very simple 3rd party patch to add this functionality.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @jtojnar