mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
notify: ${icon}: don't fallback to app-id
* Revert --icon to ${app-id}
* Use --hint STRING:image-path:${icon} instead
* ${icon} no longer expands to ${app-id} if notification has no icon
This commit is contained in:
parent
0a5ba708e4
commit
ba79bf1602
4 changed files with 5 additions and 8 deletions
7
notify.c
7
notify.c
|
|
@ -223,11 +223,8 @@ notify_notify(struct terminal *term, struct notification *notif)
|
|||
const char *title = notif->title != NULL ? notif->title : notif->body;
|
||||
const char *body = notif->title != NULL && notif->body != NULL ? notif->body : "";
|
||||
|
||||
/* Icon: use symbolic name from notification, if present,
|
||||
otherwise fallback to the application ID */
|
||||
const char *icon_name_or_path = term->app_id != NULL
|
||||
? term->app_id
|
||||
: term->conf->app_id;
|
||||
/* Icon: symbolic name if present, otherwise a filename */
|
||||
const char *icon_name_or_path = "";
|
||||
|
||||
if (notif->icon_id != NULL) {
|
||||
for (size_t i = 0; i < ALEN(term->notification_icons); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue