rakshasa / rtorrent

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

Enhancement: rtorrent should follow XDG Directory Specification #1152

Open antisocrates opened 2 years ago

antisocrates commented 2 years ago

According to XDG Base directory specification: User data should go into $XDG_DATA_HOME (which default to ~/.local/share), user preferences should go into $XDG_CONFIG_HOME (which default to ~/.config) and cached data should go to $XDG_CACHE_HOME (which default to ~/.cache).

Therefore I suggest for rtorrent to look into $HOME/.config/rtorrent/rtorrent.rc for the config file and if it's not found look at $HOME/.rtorrent.rc as backwards compatibility.

cbraidwood commented 2 years ago

It already looks for $HOME/.config/rtorrent/rtorrent.rc see #251.

antisocrates commented 2 years ago

It already looks for $HOME/.config/rtorrent/rtorrent.rc see #251.

Oh thanks didn't find that in the manual. Do you also happen to know if he added support for .config/rtorrent/session?

kannibalox commented 2 years ago

Do you also happen to know if he added support for .config/rtorrent/session?

The default is to use no session directory at all, so you can set it to whatever you like.