Transmission
Install
yay -S transmission-remote-cli-git transmission-cli
transmission-remote-cli (no longer maintained)
Create the default configuration file ~/.config/transmission-remote-cli/settings.cfg
.
transmission-remote-cli --create-config
Edit it. Launch. ?
for help.
torrent.dektop
Located in ~/.local/share/applications/torrent.desktop
; you can move it. Used for applications to execute a command.
[Desktop Entry]
Type=Application
Name=Torrent
#Exec=/path/to/transmission_add.sh %U
Exec=/usr/bin/env transmission_add.sh %U
transmission_add.sh
Script used to add a torrent via transmission-remote
to the remote server. rpc
MUST BE /transmission/rpc
#!/usr/bin/env sh
transmission-remote <host_name_or_ip>:9091 --auth=<user>:<password> --no-start-paused -a "$@" && notify-send "Torrent added"
Set it to download.
Mime
xdg-mime install --novendor torrent.desktop
In Firefox select Torrent
.
To reset defaults in Firefox go to about:preferences
; Applications; BitTorrent seed file / magnet
; always ask. Then when prompted select Torrent
.
This may be needed.
xdg-mime default torrent.desktop x-scheme-handler/magnet
xdg-mime default torrent.desktop application/x-bittorrent
Restart transmission config.
kill -s HUP "$(pidof transmission-daemon)"