diff options
author | Midov <midov@midov.pl> | 2022-04-05 21:59:36 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-05 22:57:43 +0200 |
commit | c83325a3699748e08395180529deff658ca27a58 (patch) | |
tree | 599c0b3896a52220a0f7f3d2cfc338ce5248985b /src | |
parent | bc9bc9192752cf4329830199107c64ea9c65d542 (diff) |
add appname parameter for notify-send
Diffstat (limited to 'src')
-rw-r--r-- | src/html.c | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -415,7 +415,7 @@ static int download_html_items_in_reverse(const char *plugin_filepath, Buffer *d if(result != 0) fprintf(stderr, "Failed while downloading html, url: %s\n", download_items_it->link); - const char *notify_args[] = { "notify-send", "-u", result == 0 ? "normal" : "critical", "-t", "10000", "--", result == 0 ? "Download finished" : "Download failed", notify_msg, NULL }; + const char *notify_args[] = { "notify-send", "-a", "automedia", "-u", result == 0 ? "normal" : "critical", "-t", "10000", "--", result == 0 ? "Download finished" : "Download failed", notify_msg, NULL }; program_exec(notify_args, NULL, NULL); if(result != 0) @@ -495,7 +495,7 @@ static void torrent_list_check_new_downloads_callback(int id, const char *name, if(is_finished) { if(id < unfinished_torrents->size && unfinished_torrents->items[id] == 1) { unfinished_torrents->items[id] = 0; - const char *notify_args[] = { "notify-send", "-u", "normal", "-t", "10000", "--", "Download finished", name, NULL }; + const char *notify_args[] = { "notify-send", "-u", "normal", "-a", "automedia", "-t", "10000", "--", "Download finished", name, NULL }; program_exec(notify_args, NULL, NULL); } } else { |