aboutsummaryrefslogtreecommitdiff
path: root/notify.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-30 15:16:02 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-30 15:16:02 +0000
commitba79bf1602c93ebf357f1b9c95f42b2fc0372fc8 (patch)
tree2d0038898a5e833406eeaf7c89c8bff2def35ad8 /notify.c
parentnotify: don't close FD 0 (diff)
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
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/notify.c b/notify.c
index 7c5f0731..c82c86f0 100644
--- a/notify.c
+++ b/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++) {