rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

Method.insert Invalid key #1136

Closed DorianHawkmoon closed 2 years ago

DorianHawkmoon commented 2 years ago

Installed rtorrent in ArchLinux, version 0.9.8 and using latest template I found in this repo.

Currently I left only this line (also with basedir2 just in case) method.insert = cfg.basedir, private|const|string, (cat,"/home/torrent/rtorrent/")

and this is the response /usr/bin/rtorrent -o import=/home/torrent/.rtorrent.rc rtorrent: Error in option file: ~/.rtorrent.rc:1: Invalid key.

What am I missing?

stickz commented 2 years ago

rTorrent is reading .rtorrent.rc twice because you added the import command. It already does this automatically.

Launch with this instead: /usr/bin/rtorrent Alternatively you may want to use a screen: /usr/bin/screen -d -m -S rtorrent /usr/bin/rtorrent

DorianHawkmoon commented 2 years ago

That seems to solve it, thanks!