Closed viktor-c closed 6 years ago
Sorry, too much going around this commit... will tidy things up. Probably useless anyway. I noticed that normally the config dir should be passed on the recoll, from there it should be picked up by recoll-webui through python-recoll module. This doesn't happen for me...
Give the user the chance to use a custom recoll config file when invoking this script. Use the
-c /path/to/config
optionBackground: When the script get initialised without a parameter
rclConfig
will try to find arecoll.conf
file in the home directory of the user.When the user has a custom
recoll.conf
file or more indexes give the possibility to specify the base directory where the conf file resides The argument will be set in webui.py and passed on to rclconfig.py parser.Invoke like this:
/usr/bin/python2 /home/docker/recoll-webui/webui-standalone.py -a 0.0.0.0 -c /home/docker/data/.recoll/
Also has the advantage of letting you run the script as an unprivileged user in your home directory :+1: or simply like before, nothing else happens, the script searches for .recoll/recoll.conf in the home directory./usr/bin/python2 /home/docker/recoll-webui/webui-standalone.py -a 0.0.0.0
Thanks! Viktor