From 4ca3b1593ca45bf1d910b705ac89db4093673548 Mon Sep 17 00:00:00 2001 From: Vitor Silvestri Date: Wed, 13 May 2020 12:31:15 -0300 Subject: [PATCH] Update transadd When transmission daemon is closed and the user wants to add a torrent, it needs to try to add the torrent two times, the first time for opening the daemon, and the second time for adding the torrent Removing the ampersand fix this, enabling one click for both starting the daemon and adding the torrent --- .local/bin/transadd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/transadd b/.local/bin/transadd index 1b9599ed..59eed946 100755 --- a/.local/bin/transadd +++ b/.local/bin/transadd @@ -1,9 +1,9 @@ -#!/bin/sh +patch-1#!/bin/sh # Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running. # transmission-daemon sometimes fails to take remote requests in its first moments, hence the sleep. -pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}") & +pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}") transmission-remote -a "$@" && notify-send "🔽 Torrent added."