如何在 GNOME Shell 中列出搜索提供商?

如何在 GNOME Shell 中列出搜索提供商?

super当我通过按下键(或按下屏幕左上角的活动按钮)在 GNOME Shell 中搜索某些内容时,有多个搜索提供程序会给出结果。以下是我注意到的一些:

  • 文件(nautilus)
  • 软件(应用中心)
  • 角色(GNOME 角色)
  • 设置
  • 网络(顿悟)

如何找到我的系统上所有搜索提供商的列表?

答案1

打开设置应用程序并导航至搜索。您可以在界面中看到搜索提供商列表,并且可以启用或禁用所需的提供商。您还可以通过从左侧的手柄拖放它们来重新排序它们!

截屏

答案2

您可以通过运行以下命令来找到代表搜索提供程序的文件列表:

$ ls -1 -d /usr/share/gnome-shell/search-providers/* /snap/*/*/usr/share/gnome-shell/search-providers/* /var/lib/flatpak/exports/share/gnome-shell/search-providers/*
/snap/snap-store/959/usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini
/usr/share/gnome-shell/search-providers/gnome-terminal-search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Calculator-search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Calendar.search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Characters.search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Contacts.search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Epiphany.SearchProvider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Gnote.search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Nautilus.search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Settings.search-provider.ini
/usr/share/gnome-shell/search-providers/org.gnome.Software-search-provider.ini
/usr/share/gnome-shell/search-providers/seahorse-search-provider.ini
/var/lib/flatpak/exports/share/gnome-shell/search-providers/app.drey.Dialect.SearchProvider.ini

如果您只想要文件名(代表应用程序名称)而不想要路径,请运行:

$ for i in /usr/share/gnome-shell/search-providers/* /snap/*/*/usr/share/gnome-shell/search-providers/* /var/lib/flatpak/exports/share/gnome-shell/search-providers/* ; do basename "$i" ; done
gnome-terminal-search-provider.ini
org.gnome.Calculator-search-provider.ini
org.gnome.Calendar.search-provider.ini
org.gnome.Characters.search-provider.ini
org.gnome.Contacts.search-provider.ini
org.gnome.Epiphany.SearchProvider.ini
org.gnome.Gnote.search-provider.ini
org.gnome.Nautilus.search-provider.ini
org.gnome.Settings.search-provider.ini
org.gnome.Software-search-provider.ini
seahorse-search-provider.ini
org.gnome.Software-search-provider.ini
app.drey.Dialect.SearchProvider.ini

相关内容