Windows: enable the firefox recent history indexer.

This commit is contained in:
Jean-Francois Dockes
2019-11-24 10:46:23 +01:00
parent 1ec082bdbc
commit 83e29a9b01
9 changed files with 68 additions and 54 deletions
+6 -1
View File
@@ -42,6 +42,8 @@ try:
except:
import rclconfig
_mswindows = (sys.platform == "win32")
verbosity = 0
def logdeb(s):
if verbosity >= 4:
@@ -114,7 +116,10 @@ if not os.path.isdir(mydir):
# Get target webqueue recoll directory from recoll configuration
webqueuedir = config.getConfParam("webqueuedir")
if not webqueuedir:
webqueuedir = "~/.recollweb/ToIndex"
if _mswindows:
webqueuedir = "~/AppData/Local/RecollWebQueue"
else:
webqueuedir = "~/.recollweb/ToIndex"
webqueuedir = os.path.expanduser(webqueuedir)
os.makedirs(webqueuedir, exist_ok = True)