unity-file-lens with locate not works on ecrypt home
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/
Give locate a hint (in ~/.pam_environment)
LOCATE_
(also a bug in lightdm with pam => https:/
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/
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