使用Chromium Portable时,Google API密钥缺少警告消息 [英] Google API Keys Missing Warning Message when using Chromium Portable

查看:237
本文介绍了使用Chromium Portable时,Google API密钥缺少警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用新的 Chromium Portable 浏览器时,它始终显示缺少Google API密钥。启动后,Chromium Portable的某些功能将被禁用

When i use the new Chromium Portable browser it always shows "Google API keys are missing.Some functionality of Chromium Portable will be disabled" after starting up.

我如何摆脱此警告消息,它是什么意思?。

How do i get rid of this warning message and what does it mean?.

推荐答案

要清除该消息...

...在Windows上,可以使用命令提示符将以下环境变量设置为 no :

...on Windows, you can use the command prompt to set the following environment variables to "no":

setx GOOGLE_API_KEY "no"
setx GOOGLE_DEFAULT_CLIENT_ID "no"
setx GOOGLE_DEFAULT_CLIENT_SECRET "no"

也可以从系统控制面板的高级系统设置标签中设置Windows的环境变量 setx ... 之后,重新启动浏览器将不再显示该消息。通过高级系统设置选项卡设置变量可能需要注销才能生效。

Windows' environment variables can also be set from the "Advanced System Settings" tab of the "System" control panel. After setx ... relaunching the browser should no longer have the message. Setting the variables through the "Advanced System Settings" tab may require a log-out before it takes effect.

...在Linux上,您可以使用终端来设置在bash shell中将环境变量设置为否:

... on Linux you can use the terminal to set the environment variables to "no" in the bash shell:

export GOOGLE_API_KEY="no"
export GOOGLE_DEFAULT_CLIENT_ID="no"
export GOOGLE_DEFAULT_CLIENT_SECRET="no"

随后从终端启动浏览器将不显示缺少的API密钥消息。要使此设置永久生效并覆盖单击图标的调用,请遵循此处设置影响终端和图形登录的环境变量

A subsequent launch of the browser from the terminal will not show the missing API key message. To make this setting permanent and to cover invocations from clicking on an icon, follow the directions here for setting environment variables that affect terminal as well as graphical logins.

...可以将以下键值对添加到 LSEnvironment 词典在Chromium.app>目录> Info.plist:

...on macOS, you can add the following key-value pairs to the LSEnvironment dictionary in Chromium.app > Contents > Info.plist:

<key>LSEnvironment</key>
<dict>
    <key>GOOGLE_API_KEY</key>
    <string>no</string>
    <key>GOOGLE_DEFAULT_CLIENT_ID</key>
    <string>no</string>
    <key>GOOGLE_DEFAULT_CLIENT_SECRET</key>
    <string>no</string>
</dict>

(请注意,macOS可能已经缓存了现有的Info.plist文件,因此更改可能不会立即生效。参见此答案以了解有关此问题的一些方法。)

(Note that macOS may have cached the existing Info.plist file, so changes may not take effect immediately. See this answer for some ways around that.)

至于含义,我认为德拉戈米尔·戈拉诺夫的答案提供了足够的信息。

As for the meaning, I think Dragomir Goranov's answer gives sufficient information.

这篇关于使用Chromium Portable时,Google API密钥缺少警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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