对于我工作的组织中的某些用户,我们已经开始用Ubuntu替换一些Windows桌面。由于我们的政策,我们需要全局禁用以下功能:
我注意到,当我手动取消单击“包括在线搜索结果”时,它会更改~/.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']"
有没有办法禁用这些功能以符合我组织的政策?我们正在使用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
它另存为disable_onlinesearch.desktop
中/etc/xdg/autostart
为确保没有用户可以使用Amazon启动器,最好在全局范围内将其删除:转到/usr/share/applications
并查找文件:
ubuntu-amazon-default.desktop
并删除它。
或者
如果出于某种原因,您想保留该文件ubuntu-amazon-default.desktop
,但(暂时?)将其禁用(在Dash / Unity中使其不可见),则在文件中添加一行:
NoDisplay=true
上面的解决方案适用于当前版本的Ubuntu,至少从14.04起。(截至2015年5月28日)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句