#!/bin/sh exec /usr/bin/emacsclient --no-wait --quiet --alternate-editor= --eval "(let* ((torrent (pop server-eval-args-left))) (require 'notifications) (condition-case nil (progn (transmission-add torrent) (notifications-notify :title \"Transmission\" :body (format \"Torrent probably added: %s\" torrent) :timeout 2000)) (error (notifications-notify :title \"Transmission\" :body \"Something went wrong, check if transmission daemon is running.\") nil)))" "$@"