当前位置: 首页>>技术问答>>正文


如何关闭KDE 4.13中的baloo?

, ,

问题描述

我有Kubuntu 14.04并刚刚安装了最新的更新。查看进程列表,我看到baloo索引器正在运行。

我在Baloo设置中找不到关闭索引的复选框。

最佳解决方案

您可以让文件管理器显示隐藏文件,然后转到$HOME/.kde/share/config/baloofilerc。编辑它并更改选项就足够了

Indexing-Enabled=true 

到(或添加,如果没有这样的选择)

Indexing-Enabled=false

禁用baloo。

我知道这太简单了,但它确实适合我,也适用于发布这个简单解决方案on this page的人。

Disabling Akonadi服务器和Nepomuk搜索插件可以极大地提高KDE环境中的性能。

次佳解决方案

Baloo负责桌面搜索。

Quoting one of the Baloo authors

There is no explicit “Enable/Disable” button any more. We would like to promote the use of searching and feel that Baloo should never get in the users way. However, we are smart about it and IF you add your HOME directory to the list of “excluded folders”, Baloo will switch itself off since it no longer has anything to index.

kde,baloo,ubuntu

第三种解决方案

来自Gentoo论坛:http://forums.gentoo.org/viewtopic-p-7522240.html

从KDE 4.13.0(Kubuntu Trusty)开始,不再可能在GUI中禁用Semantic Desktop。虽然在系统设置中有一个”Desktop Search”小程序,你应该能够在那里将你的家庭目录列入黑名单,但这样做没有效果,而且Baloo(已经从Nepomuk /Strigi手中接管)继续做100%负载的东西和multi-Gigabyte内存使用在它运行的CPU核心上。

您可以使用’top’检查系统上的CPU负载:

top

使用’iotop’检查系统上的I /O负载:

sudo apt-get install iotop
sudo iotop

要永久禁用baloo,请将其符号链接到/bin /true:

sudo mv /usr/bin/baloo_file_extractor /usr/bin/baloo_file_extractor.orig
sudo ln -s /bin/true /usr/bin/baloo_file_extractor

sudo mv /usr/bin/baloo_file_cleaner /usr/bin/baloo_file_cleaner.orig
sudo ln -s /bin/true /usr/bin/baloo_file_cleaner

这将阻止它再次运行。这样做会失去搜索功能,但似乎没有任何不利影响。

第四种方案

为避免手动编辑$HOME/.kde/share/config/baloofilerc,这对您也是一样的:

kwriteconfig --file baloofilerc --group 'Basic Settings' --key 'Indexing-Enabled' false

第五种方案

我还没试过,但apparently,你也可以

$ cp /usr/share/autostart/baloo_file.desktop ~/.kde/share/autostart/
$ echo "Hidden=True" >> ~/.kde/share/autostart/baloo_file.desktop

(我的主文件夹位于“不搜索”部分,可能来自nepomuk,而baloo_file仍然使用100%的核心。)

第六种方案

将$ HOME添加到排除路径列表确实会停止使用100%CPU的baloo_file_extractor。然而,它开始baloo_file_cleaner,这是在捣乱我的硬盘。

确保它不会自动启动,似乎可以解决问题:

sudo mv /usr/share/autostart/baloo_file.desktop /usr/share/autostart/baloo_file.desktop.orig

第七种方案

虽然有几种方法可以防止Baloo编入索引,但我的目的是防止Baloo运行。根据The KDE docs,没有User-accessible方法,所以我将the KDE forums上找到的解决方案与user ‘s solution结合起来禁用可执行文件:

sudo mv /usr/bin/baloo_file /usr/bin/baloo_file-orig
sudo ln -s /bin/true /usr/bin/baloo_file
sudo mv /usr/bin/baloo_file_cleaner /usr/bin/baloo_file_cleaner-orig
sudo ln -s /bin/true /usr/bin/baloo_file_cleaner
sudo mv /usr/bin/baloo_file_extractor /usr/bin/baloo_file_extractor-orig
sudo ln -s /bin/true /usr/bin/baloo_file_extractor

然后我更进一步确保无法更新baloo,覆盖上述符号链接:

$ sudo apt-mark hold  baloo libbaloocore4 libbaloofiles4 libbaloopim4 libbaloowidgets4 libbalooxapian4
$ sudo apt-get remove baloo

对于额外的保险,如果baloo流程确实找到回来的方法是将以下内容添加到~/.kde/share/config/baloofilerc

[Basic Settings]
Indexing-Enabled=false

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1429.html,未经允许,请勿转载。