branch: elpa/helm
commit b304bd39b4bc50505962043d0ac2d8bb5b34e4af
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Don't hardcode locate.db
---
 helm-locate.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/helm-locate.el b/helm-locate.el
index 1dbaffe5ef..f2afd5c140 100644
--- a/helm-locate.el
+++ b/helm-locate.el
@@ -461,14 +461,17 @@ Sort is done on basename of CANDIDATES."
                              "/" "\\\\\\\\" (helm-get-attr 'basedir))
                            (helm-get-attr 'subdir)))
                    ((string-match-p "\\`locate" 
helm-locate-recursive-dirs-command)
-                    (let* ((db (locate-dominating-file (helm-get-attr 
'basedir) "locate.db"))
+                    (let* ((db (locate-dominating-file (helm-get-attr 'basedir)
+                                                       
helm-ff-locate-db-filename))
                            (lcmd (if (and db (not (string-match-p
                                                    "-d" 
helm-locate-recursive-dirs-command)))
                                      (mapconcat
                                       #'identity
                                       (helm-append-at-nth
                                        (split-string 
helm-locate-recursive-dirs-command)
-                                       (format "-d %s" (expand-file-name 
"locate.db" db)) 1)
+                                       (format "-d %s" (expand-file-name
+                                                        
helm-ff-locate-db-filename db))
+                                       1)
                                       " ")
                                    helm-locate-recursive-dirs-command)))
                     (format lcmd (helm-get-attr 'basedir) (helm-get-attr 
'subdir))))

Reply via email to