diff --git a/src/common/rclconfig.cpp b/src/common/rclconfig.cpp index 9fa0824b..8ceabbc3 100644 --- a/src/common/rclconfig.cpp +++ b/src/common/rclconfig.cpp @@ -1322,12 +1322,14 @@ string RclConfig::findFilter(const string &icmd) const if (access(cmd.c_str(), X_OK) == 0) return cmd; } + // Filters dir as configuration parameter? if (getConfParam(string("filtersdir"), cmd)) { cmd = path_cat(cmd, icmd); - if (access(cmd.c_str(), X_OK) == 0) - return cmd; - } + cmd = path_tildexpand(cmd); + if (access(cmd.c_str(), X_OK) == 0) + return cmd; + } // Filters dir as datadir subdir. Actually the standard case, but // this is normally the same value found in config file (previous step) diff --git a/src/sampleconf/recoll.conf.in b/src/sampleconf/recoll.conf.in index 327b2366..7087e1db 100644 --- a/src/sampleconf/recoll.conf.in +++ b/src/sampleconf/recoll.conf.in @@ -1,7 +1,7 @@ # (C) 2004 J.F.Dockes. License: GPL # # Recoll default configuration file. This typically lives in -# @prefix@/share/recoll/examples and provides default values. You can +# $prefix/share/recoll/examples and provides default values. You can # override selected parameters by adding assigments to # ~/.recoll/recoll.conf (or $RECOLL_CONFDIR/recoll.conf) # @@ -199,12 +199,13 @@ maxfsoccuppc = 0 idxflushmb = 10 # Place to search for executable filters. If RECOLL_FILTERSDIR is set in -# the environment, we use it instead -filtersdir = @prefix@/share/recoll/filters +# the environment, we use it instead. Defaults to $prefix/share/recoll/filters +# filtersdir = /path/to/my/filters # Place to search for icons. The only reason to change this would be if you -# want to change the icons displayed in the result list -iconsdir = @prefix@/share/recoll/images +# want to change the icons displayed in the result list. +# Defaults to $prefix/share/recoll/images +# iconsdir = /path/to/my/icons # Should we use the system's 'file -i' command as a final step in file type # identification ? This may be useful, but will usually cause the