unity-file-lens with locate not works on ecrypt home

Bug #1265227 reported by PBeck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-lens-files
New
Undecided
Unassigned

Bug Description

I am not sure if this problem (or feature request) also happens on 13.10 - i am using 12.10. It's also possible that this bug can also be assigned to mlocate.

When you have activated "use-locate" in the dconf-settings, the unity dash should search also for local files - in combination with the journal from zeitgeist.

When the home dir is encrypted it will not work, because updatedb not searches in such dirs (you will see the file names in the database). A possible solution for this is to use a local locate database only for the home dir.

Generate the Database
updatedb -l 0 -o /home/pbeck/.mlocate.db -U /home/pbeck

Give locate a hint (in ~/.pam_environment)
LOCATE_PATH=/home/pbeck/.mlocate.db
(also a bug in lightdm with pam => https://bugs.launchpad.net/lightdm/+bug/952185)

Update with cronjob or manually. After a relogin, the dash will display some results. The maximal results are 128. So it can happen that locate will index first many files/folders out of /home. The unity-file-lens will sort out hidden files/folder, and system files/folders. At the end you get for example no results for "radio", but for "radio." or "radio.m3u". When you have to describe the file so exactly it will be not very usefull.

A possible solution will be to use only the locate-db in the /home dir. In the moment i have played a bit with a alias for locate (locate --database /home/pbeck/mlocate.db). I think i am to late, when i use it in .bashrc for startup (other option?).

How should be the behavior of the file-lens, when use-locate is activated? What you think about a hidden mlocate database in the home dir? For special searches i think the nautilus search is recommend?

Patrick

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.