9 lines
423 B
Plaintext
9 lines
423 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Mimeapp script for adding torrent to deluge, but will also start the daemon first if not running.
|
||
|
|
||
|
pgrep deluged >/dev/null || (deluged && notify-send "Starting deluge daemon...")
|
||
|
|
||
|
# BUG will always return 1 if under v2.1.2, see https://dev.deluge-torrent.org/ticket/3582#ticket
|
||
|
if deluge-console add "$@" ; then notify-send "🔽 Torrent added." ; else notify-send "🔽 failed to add, maybe it exists?" ; fi
|