mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
notify: don't create icon file on disk when we're not going to use it
We always prefer the symbolic name. Thus, there's no need to write raw PNG data to disk if we have a symbolic name. Furthermore, keep the file open until the cache entry is evicted.
This commit is contained in:
parent
24168ed86e
commit
37ab3b1603
2 changed files with 27 additions and 13 deletions
3
notify.h
3
notify.h
|
|
@ -58,7 +58,8 @@ struct notification {
|
|||
struct notification_icon {
|
||||
char *id;
|
||||
char *symbolic_name;
|
||||
char *tmp_file_on_disk;
|
||||
char *tmp_file_name;
|
||||
int tmp_file_fd;
|
||||
};
|
||||
|
||||
bool notify_notify(struct terminal *term, struct notification *notif);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue