Nautilus有个坑——tracker-miner-fs

环境

系统:Debian GUN/Linux 10, bullseye
桌面:Xfce 4.14

问题描述

本来Xfce的默认文件管理器是Thunar,有一次偶然尝试了一下Nautilus作为默认文件管理器。结果发现开机进入桌面后系统反应变慢,查了一下发现是一个进程tracker-miner-fs占用了100 %的CPU。关于这个现象网上已有多处讨论,仅举一例:

查了一下它的出处,原来它是Nautilus的依赖包:

> apt-cache depends nautilus
nautilus
  Depends: bubblewrap
    bubblewrap:i386
  Depends: desktop-file-utils
    desktop-file-utils:i386
  Depends: gsettings-desktop-schemas
  Depends: gvfs
  Depends: libglib2.0-data
  Depends: libnautilus-extension1a
  Depends: nautilus-data
  Depends: shared-mime-info
    shared-mime-info:i386
  Depends: tracker
  Depends: tracker-miner-fs    <注意此处>
  Depends: tracker-extract
  Depends: libatk1.0-0
  Depends: libc6
  Depends: libcairo-gobject2
  Depends: libcairo2
  Depends: libgdk-pixbuf2.0-0
  Depends: libgexiv2-2
  Depends: libglib2.0-0
  Depends: libgnome-autoar-0-0
  Depends: libgnome-desktop-3-17
  Depends: libgstreamer-plugins-base1.0-0
  Depends: libgstreamer1.0-0
  Depends: libgtk-3-0
  Depends: libpango-1.0-0
  Depends: libpangocairo-1.0-0
  Depends: libselinux1
  Depends: libtracker-sparql-2.0-0
  Breaks: totem
  Recommends: gnome-sushi
  Recommends: gvfs-backends
    gvfs-backends:i386
  Recommends: librsvg2-common
  Suggests: eog
 |Suggests: evince
  Suggests: <pdf-viewer>
    atril
    evince
    gv
    mupdf
    okular
    qpdfview
    viewpdf.app
    xpdf
    zathura-pdf-poppler
  Suggests: nautilus-extension-brasero
  Suggests: nautilus-sendto
 |Suggests: totem
  Suggests: <mp3-decoder>
    mpg321
    vlc
  Suggests: xdg-user-dirs
    xdg-user-dirs:i386
  Replaces: totem

看了处理方法比较复杂,索性卸载了Nautilus,再没有这玩意的干扰。不过Nautilus是Gnome桌面的默认文件管理器,不能这样一卸了之,各位Gnome桌友要小心了。

参考它的手册知道,它的启动在用户登录后启动了.desktop快捷方式,该文件在:

~/.config/autostart/tracker-miner-fs.desktop

我想可以删除这件文件,以避免它的自动运行。不过这只是猜测,我没有尝试。

参考