Closed nerun closed 1 year ago
Hi nerun!
I see this PR just changes error messages, which is OK if we can be sure to rely on distros to keep aliasing executables as locate/updatedb.
One request before merging, which should be easy to do: can you please also update the .po translations with this detail? so we keep them aligned.
thanks!
@jaromil , about PO files, no problem! But could you help me with issue #482 ? It's related to translations and PO files.
This PR specifically doesn't just fix error messages. Index/search commands don't work in Linux Mint (and probably Ubuntu 22.04). Precisely because of the mlocate problem. These commands specifically look for mlocate, when they don't find it they don't work and return the error message. What this PR does is tell the index/search commands to look for mlocate OR
plocate. And then everything works on Linux Mint/Ubuntu (current versions).
after
merge PR #486.
Related issue: #464
The problem
Tomb is an old tool and uses
mlocate
for searching/indexing. But modern systems have replacedmlocate
withplocate
. On these systems (such as Linux Mint 21.1 and Ubuntu 22.04) thetomb index
ortomb search
commands are broken, user receives message:To fix this issue i have changed lines with:
To:
Now both systems (with mlocate or plocate) works fine.
Difference between mlocate and plocate
plocate is backwards-compatible with mlocate, and is much faster and more efficient than mlocate.
In fact you don’t have a choice between mlocate and plocate in Ubuntu 22.04: if you install the former, you’ll end up with the latter anyway, because mlocate is a transitional package which pulls in plocate.
Source: Difference between mlocate and plocate