在将我的网址添加到Chrome首选项后,将ExtensionInstallSources偏好设置添加后,仍然不允许安装“.crx”打包的应用 [英] After adding ExtensionInstallSources preference with my URL to Chrome Preferences, still won't allow installing ".crx" packaged app

查看:1325
本文介绍了在将我的网址添加到Chrome首选项后,将ExtensionInstallSources偏好设置添加后,仍然不允许安装“.crx”打包的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了首选项 ExtensionInstallSources (根据:

文件:/home/myuser/.config/google-chrome/Default/Preferences

 extensions:{
ExtensionInstallSources:[http://myurl.com/*],
...消除...

然而,当我转到url http://myurl.com/myapp/app.crx 它告诉我它无法从该网址安装。如何解决这个问题?



更多信息



code>首选项文件不是正确的编辑文件。我从这里下载了一个示例: http://dl.google.com /dl/edgedl/chrome/policy/policy_templates.zip http://support.google.com/chrome/a/bin/answer.py?hl=zh_CN&answer=187945



它提供了一个chrome.json文件,但没有指定在哪里安装。我试图在 .config / chrome / Default 文件夹中安装它,但这不起作用。



我的chrome.js文件是:

  //策略模板对于Linux。 
//取消您想要激活的政策的注释并将其值更改为
//对您的情况有用。提供的值仅供参考
//并且不提供有意义的默认值!
{
ExtensionInstallSources:[http://myurl.lamp/*]
}

它仍然无效!



2ND更新:



我将设置放在 /etc/opt/chrome/policies/managed/test_policy.json 中,如下所示: http://www.chromium.org/administrators/linux-quick-start 并且仍然没有工作
$ b

第三次更新:



我检查了 chrome:// policy ,它显示权限在那里!它仍然不会让我从URL安装crx!它显示 ExtensionInstallSources 的值为:

  http:// myurl .lamp / *,http:// localhost / *,http://192.168.1.109/*,*://myurl.lamp/*,file:/// * 

p>

但这些工作都没有!

解决方案

I只是在一个测试的ubuntu虚拟机上使用chrome unstable(35.0.1908.4)试过,并且它工作正常。更改策略文件后是否重新启动Chrome?

I added the preference ExtensionInstallSources (as per: http://www.chromium.org/administrators/policy-list-3#ExtensionInstallSources ), it still is not allowing me to install my "app.crx" from my URL. I added it as follows:

File: /home/myuser/.config/google-chrome/Default/Preferences

"extensions": {
    "ExtensionInstallSources": [ "http://myurl.com/*" ],
...elided...

Yet, when I go to the url http://myurl.com/myapp/app.crx it tells me it cannot install from that url. How do I fix this?

MORE INFO:

It appears that Preferences file is not the correct one to edit. I downloaded an example on from here: http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip as specified here: http://support.google.com/chrome/a/bin/answer.py?hl=en&answer=187945

That provides a "chrome.json" file but does not specify where to install this. I tried installing it in the .config/chrome/Default folder but that doesn't work.

My chrome.js file is:

// 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/*"]
}

It still does not work!

2ND UPDATE:

I put the setting in /etc/opt/chrome/policies/managed/test_policy.json as specified here: http://www.chromium.org/administrators/linux-quick-start and it still does not work!

3RD UPDATE:

I checked chrome://policy and it shows the permission is there! It still won't let me install crx's from the URL though! It shows the value for ExtensionInstallSources is:

http://myurl.lamp/*,http://localhost/*,http://192.168.1.109/*,*://myurl.lamp/*,file:///*

But none of those work!

解决方案

I just tried this using chrome unstable (35.0.1908.4) in a test ubuntu virtual machine and it worked fine. Did you restart chrome after changing the policy file?

这篇关于在将我的网址添加到Chrome首选项后,将ExtensionInstallSources偏好设置添加后,仍然不允许安装“.crx”打包的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆