From 03f477257deb3a1cc4c47fe6d0054867493fb49d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 26 Apr 2024 22:18:59 +0200 Subject: Change notify-send timeout to 3 seconds --- src/html.c | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/html.c b/src/html.c index 2cea600..c0860b5 100644 --- a/src/html.c +++ b/src/html.c @@ -426,7 +426,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", "-a", "automedia", "-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", "3000", "--", result == 0 ? "Download finished" : "Download failed", notify_msg, NULL }; program_exec(notify_args, NULL, NULL); if(result != 0) diff --git a/src/main.c b/src/main.c index 50e3c1e..a4deda0 100644 --- a/src/main.c +++ b/src/main.c @@ -511,7 +511,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", "-a", "automedia", "-t", "10000", "--", "Download finished", name, NULL }; + const char *notify_args[] = { "notify-send", "-u", "normal", "-a", "automedia", "-t", "3000", "--", "Download finished", name, NULL }; program_exec(notify_args, NULL, NULL); char item_path[PATH_MAX]; -- cgit v1.2.3