我添加了偏好ExtensionInstallSources
(按照:http://www.chromium.org/administrators/policy-list-3#ExtensionInstallSources),它仍然不允许我从我的URL安装我的"app.crx"。我添加了如下内容:
文件:/home/myuser/.config/google-chrome/违约/偏好
"extensions": {
"ExtensionInstallSources": [ "http://myurl.com/*" ],
...elided...
然而,当我转到url http://myurl.com/myapp/app.crx
时,它告诉我它不能从该url安装。我该如何解决这个问题?
更多信息:
似乎Preferences
文件不是要编辑的正确文件。我从这里下载了一个例子:http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip在这里指定:http://support.google.com/chrome/a/bin/answer.py?hl=en&answer=187945
提供了一个"chrome"。. json"文件,但没有指定在哪里安装这个。我试着在.config/chrome/Default
文件夹中安装它,但这不起作用。
我的chrome.js文件是:
// Policy template for Linux.
// Uncomment the policies you wish to activate and change their values to
// something useful for your case. The provided values are for reference only
// and do not provide meaningful defaults!
{
"ExtensionInstallSources": ["http://myurl.lamp/*"]
}
还是不行!
2日更新:
我把设置在/etc/opt/chrome/policies/managed/test_policy.json
指定在这里:http://www.chromium.org/administrators/linux-quick-start和它仍然不工作!
3日更新:
我检查了chrome://policy
,它显示权限在那里!它仍然不会让我从URL安装crx的!它显示ExtensionInstallSources
的值为:
http://myurl.lamp/*,http://localhost/*,http://192.168.1.109/*,*://myurl.lamp/*,file:///*
但是这些都不起作用!
我刚刚在测试ubuntu虚拟机中使用chrome不稳定(35.0.1908.4)尝试了这个,它工作得很好。更改策略文件后是否重新启动chrome ?