aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMidov <midov@midov.pl>2022-04-05 21:59:36 +0200
committerdec05eba <dec05eba@protonmail.com>2022-04-05 22:57:43 +0200
commitc83325a3699748e08395180529deff658ca27a58 (patch)
tree599c0b3896a52220a0f7f3d2cfc338ce5248985b
parentbc9bc9192752cf4329830199107c64ea9c65d542 (diff)
add appname parameter for notify-send
-rwxr-xr-xlist-missing-unwatched.py2
-rwxr-xr-xlist-unwatched.py2
-rw-r--r--src/html.c2
-rw-r--r--src/main.c2
-rwxr-xr-xtrack.py4
5 files changed, 6 insertions, 6 deletions
diff --git a/list-missing-unwatched.py b/list-missing-unwatched.py
index 4dab88c..980c500 100755
--- a/list-missing-unwatched.py
+++ b/list-missing-unwatched.py
@@ -6,7 +6,7 @@ import sys
def show_notification(title, description, urgency):
print("Notification: title: %s, description: %s" % (title, description))
- process = subprocess.Popen(["notify-send", "-t", "10000", "-u", urgency, "--", title, description])
+ process = subprocess.Popen(["notify-send", "-a", "automedia", "-t", "10000", "-u", urgency, "--", title, description])
stdout, stderr = process.communicate()
return process.returncode == 0
diff --git a/list-unwatched.py b/list-unwatched.py
index ba56876..874df7b 100755
--- a/list-unwatched.py
+++ b/list-unwatched.py
@@ -5,7 +5,7 @@ import subprocess
def show_notification(title, description, urgency):
print("Notification: title: %s, description: %s" % (title, description))
- process = subprocess.Popen(["notify-send", "-t", "10000", "-u", urgency, "--", title, description])
+ process = subprocess.Popen(["notify-send", "-a", "automedia", "-t", "10000", "-u", urgency, "--", title, description])
stdout, stderr = process.communicate()
return process.returncode == 0
diff --git a/src/html.c b/src/html.c
index bd41611..c241848 100644
--- a/src/html.c
+++ b/src/html.c
@@ -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)
diff --git a/src/main.c b/src/main.c
index e5edd19..c6e46a0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 {
diff --git a/track.py b/track.py
index 933db09..d56d8b3 100755
--- a/track.py
+++ b/track.py
@@ -7,7 +7,7 @@ import sys
def show_notification(title, description, urgency):
print("Notification: title: %s, description: %s" % (title, description))
- process = subprocess.Popen(["notify-send", "-t", "10000", "-u", urgency, "--", title, description])
+ process = subprocess.Popen(["notify-send", "-a", "automedia", "-t", "10000", "-u", urgency, "--", title, description])
stdout, stderr = process.communicate()
return process.returncode == 0
@@ -72,4 +72,4 @@ def main():
sys.exit(1)
if __name__ == "__main__":
- main() \ No newline at end of file
+ main()