Menu

#9 downloadsdir/webdownloadsdir settings discrepancy

1.0
open
nobody
None
2018-03-04
2017-12-26
Anonymous
No

Hi,
I've been testing the new WebExtension for Firefox and recoll 1.23.5 (from ppa) for a while now. Beside the minor annoyances related to the use of the browser's download functionality (that you are most likely aware of: the -almost- requirement to download files in a single directory, clutter in downloads history and downloads directory), the only bug I've noticed so far is that reindexation would not move ".rclwe" files off downloads dir (~/Téléchargements in my case). Running /usr/share/recoll/filters/recoll-we-move-files.py manually works though.
After some investigation it seems recollindex.cpp and recoll-we-move-files.py disagree on the name of the setting for the downloads directory:
ᐅ rgrep '"downloadsdir"' .
./index/recollindex.cpp: if (!config->getConfParam("downloadsdir", downloadsdir)) {
ᐅ rgrep '"webdownloadsdir"' .
./filters/recoll-we-move-files.py:downloadsdir = config.getConfParam("webdownloadsdir")
And sure enough adding a downloadsdir setting with the same value as webdownloadsdir seems to fix the problem.
I'm not 100% sure this is the root issue, but hope it helps.

Discussion

  • Jean-Francois Dockes

    Thanks for reporting this. It will be fixed in the next recoll version.

    FYI, there is a new extension being developped independantly (not by me):
    https://github.com/hedning/recoll-web

    It is based on a different mechanism and won't have the issues due to using the downloads mechanism. I'll probably retire the current extension when the new one is finalized (had no time to test it yet).

     
  • Anonymous

    Anonymous - 2018-03-01

    Hi, I have a similar problem: the downloaded html files (extension .rclwe) are not removed from the download folder, but keep accumulating there. I use Recoll 1.21.5 + Xapian 1.2.22 on the latest version of LinuxMint (18.3, Mate 64 bit) with Recoll WE 1.2 on Firefox 58.0 (64 bit). I have tried different combinations of the webdownloadsdir setting in file ~/.recoll/recoll.conf and the default download directory, but this only changed the place where the .rclwe files are stored, yet did not solve my problem. Looking at the previous post, I see that a file called "recoll-we-move-files.py" is supposed to be in folder /usr/share/recoll/filters/, but I cannot find it there (nor anywhere else on my computer). Do you suppose that anything went wrong during my installation? Any suggestions of how to fix this?

     
  • Jean-Francois Dockes

    You need recoll 1.23.5 at least for this to work (that's the first version to support the new plugin). You can get it from the Recoll PPA

     

    Last edit: Jean-Francois Dockes 2018-03-04

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB