全局禁用“包括在线搜索结果”
对于我工作的组织中的一些用户,我们已经开始用Ubuntu替换一些Windows桌面。 由于我们的政策,我们需要全局禁用以下function:
- “ 安全和隐私”的“ 搜索”选项卡中包含在线搜索结果
- 来自启动器的亚马逊启动器图标
我注意到当我手动取消单击“ 包括在线搜索结果 ”时,它会更改~/.config/dconf/user
。 但是这个文件采用了一些GVariant二进制格式,所以我不能用文本编辑器或脚本来调整它。
我也尝试过在另一篇文章中找到的这个命令,但它似乎没有效果,建议仍然有效:
$ gsettings set com.canonical.Unity.Lenses 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']"
有没有办法禁用这些function以符合我的组织的政策? 我们使用的是14.042 LTS,但如果该解决方案也适用于更高版本,那将是理想的选择。
您正在寻找的命令是:
gsettings set com.canonical.Unity.Lenses remote-content-search 'none'
要在登录时全局 (针对所有用户)创建命令,您必须在/etc/xdg/autostart
添加启动器,运行命令:
/bin/bash -c "gsettings set com.canonical.Unity.Lenses remote-content-search 'none'"
该文件看起来像:
[Desktop Entry] Name=Disable Search Exec=/bin/bash -c "gsettings set com.canonical.Unity.Lenses remote-content-search 'none'" Type=Application
将其保存为/etc/xdg/autostart
disable_onlinesearch.desktop
删除Amazon启动器
要确保没有用户可以使用Amazon启动器,最好全局删除它:转到/usr/share/applications
并查找文件:
ubuntu-amazon-default.desktop
并删除它。
另外
如果由于某种原因,你想保留文件ubuntu-amazon-default.desktop
,但(暂时?)禁用它(使它在Dash / Unity中不可见)在文件中添加一行:
NoDisplay=true
以后的版本
上述解决方案适用于当前版本的Ubuntu,至少从14.04及更高版本开始。 (截至2015年5月28日)。
你可以完全删除unity-webapps-common
的删除购物镜头,包括亚马逊。
sudo apt-get purge unity-webapps-common
然后,您需要注销并重新登录。