Ubuntu Unity在线搜索怎样只显示终端应用

发布时间:2021-09-27 11:10:21 作者:柒染
来源:亿速云 阅读:101

Ubuntu Unity在线搜索怎样只显示终端应用,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

  相信大家在Ubuntu下使用Unity的在线搜索功能的时候,一定遇到过这样的问题,那就是搜索出来的结果总是带有第三方应用,不胜其烦,下面小编就教大家让Unity只显示终端应用的方法。

Ubuntu Unity在线搜索怎样只显示终端应用

  正如上面的截图所见,Unity显示内置的 Terminal 应用、引用链接、天气链接和其他第三方的推荐,如电影等。显示了太多的搜索结果。

  在终端输入以下命令:

  wget -q -O - https://fixUbuntu.com/fixubuntu.sh | bash

  上述脚本的内容如下:

  #!/bin/bash

  GS=“/usr/bin/gsettings”

  CCUL=“com.canonical.Unity.lenses”

  # Figure out the version of Ubuntu that you‘re running

  V=`/usr/bin/lsb_release -rs`

  # The privacy problems started with 12.10, so earlier versions should do nothing

  if awk “BEGIN {exit !($V 《 12.10 || $V 》= 14.10)}”;then

  echo “Good news! This version of Ubuntu is not known to invade your privacy.”

  else

  # Check Canonical schema is present. Take first match, ignoring case.

  SCHEMA=“`$GS list-schemas | grep -i $CCUL | head -1`”

  if[-z “$SCHEMA”]

  then

  printf “Error: could not find Canonical schema %s.\n”“$CCUL”1》&2

  exit1

  else

  CCUL=“$SCHEMA”

  fi

  # Turn off “Remote Search”, so search terms in Dash don’t get sent to the internet

  $GS set $CCUL remote-content-search none

  # If you‘re using earlier than 13.10, uninstall unity-lens-shopping

  if[ $V \《 13.10];then

  sudo apt-get remove -y unity-lens-shopping

  # If you’re using a later version, disable remote scopes

  else

  $GS set $CCUL disabled-scopes \

  “[‘more_suggestions-amazon.scope’, ‘more_suggestions-u1ms.scope’,

  ‘more_suggestions-populartracks.scope’, ‘music-musicstore.scope’,

  ‘more_suggestions-ebay.scope’, ‘more_suggestions-ubuntushop.scope’,

  ‘more_suggestions-skimlinks.scope’]”

  fi;

  # Block connections to Ubuntu‘s ad server, just in case

  if! grep -q “127.0.0.1 productsearch.ubuntu.com”/etc/hosts;then

  echo -e “\n127.0.0.1 productsearch.ubuntu.com”| sudo tee -a /etc/hosts 》/dev/null

  fi

  echo “All done. Enjoy your privacy.”

  fi

  再次进入Unity dash 的终端。现在Unity 只显示终端应用。

Ubuntu Unity在线搜索怎样只显示终端应用

  更新:这一招只适用Unity desktop。如果你使用其他的比如GNOME,LXDE或Xfce不用这么做。同时,这个在线搜索功能将不会包含在Ubuntu 14.10和即将推出的版本中。

关于Ubuntu Unity在线搜索怎样只显示终端应用问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

推荐阅读:
  1. 初步认识Ubuntu系统
  2. ubuntu卸载软件的方法有哪些

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ubuntu unity

上一篇:Ubuntu 9.04升级到9.10的过程是怎样的

下一篇:redhat linux enterprise 5输入ifconfig无效的解决方法是怎样的

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》