bt2pd

NAME
SYNOPSIS
DESCRIPTION
FILES
AUTHOR

NAME

bt2pd - a variant of "bittorrent2player" suitable for file managers

SYNOPSIS

bt2pd [$HASH_FILE]

DESCRIPTION

This program runs "bittorrent2player --hash-file=$HASH_FILE --save-path=$SAVE_PATH". It terminates an already running instance (process), if it is running. I.e., run this command without arguments to terminate an instance of "bittorrent2player" started by "bt2pd." The menu item "Programs"/"Internet"/"stop bt2pd" in Gnome menu also terminates the instance.

The file "bt2pd.conf" is in JSON format, example: ’{"save_path":"/tmp","piece_par":8}’. SAVE_PATH is the value of the key "save_path". If the key "piece_par" is given, then "--piece-par=$PIECE_PAR" is added to the command line, where PIECE_PAR is the value of the key "piece_par".

This program is associated with torrent files in file managers like Gnome Nautilus, because the "desktop" file is provided, according to http://standards.freedesktop.org/desktop-entry-spec/latest/ .

The process id of the running instance is obtained from the "pid" file. I.e., this program operates like a Unix daemon. The letter "d" in its name stands for "daemon".

Resume data are assumed to be in the "resume" file.

FILES

$XDG_CONFIG_HOME/bt2pd.conf, $HOME/.local/var/run/bt2pd.pid, $HOME/.local/var/bt2pd.resume

AUTHOR

This manual page was written by Roman Beslik <rabeslik@gmail.com>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, version 2.1 or any later version published by the Free Software Foundation