[630772 views]

[]

[toggle ads]

Odi's astoundingly incomplete notes

New entries | Code

KDE clear baloo db

KDE Plasma 5 has this nice launcher that lets you simply start typing and will display search results. Unfortunately they are completely useless. Because they come from Baloo.

The first thing Baloo does is read your whole freaking hard drive and create a full text index from it. Well thanks. I never asked for that. Guess how long that takes for today's disk sizes. And guess how interesting results are from tons of Java API Doc that happens to be installed somewhere deep in a forgotten corner of the file system.

Well, you think, let's just clear the index and let it only index what seems to be useful. Then to your surprise the settings dialog provides no such controls to clear the index. There is a CLI tool called balooctl that even has a clear command. But that seems to accept only individual full path names. And is basically undocumented. Well thanks again for that.

Using strace I was able to find where baloo stores its index: ~/.local/share/baloo. Simply nuke this unfortunate thing out of existance.

See also the checkbox 'Expand search to bookmarks, files and emails' in Application Laucher Settings.

posted on 2016-04-13 21:55 CEST in Code | 0 comments | permalink