Appstream 2.0 无法传递会话上下文

Appstream 2.0 failing to pass session context

我们正在 运行安装一个 Appstream 2.0 实例,并正在尝试 运行 example in the documentation 到 运行 Chrome 的一个实例并启动一个默认 URL 通过 AWS CLI 传入。

我们已使用 CLI 和此命令成功生成 URL:

aws appstream create-streaming-url --stack-name "stack-name-here" --fleet-name "fleet-name-here" --user-id "user-email@email.com" --application-id "Chrome" --session-context "www.google.com"

但是在启动时,会话上下文“www.google.com”永远不会被传递。我们已经设置了一个批处理文件,其中引用了图像文档中指定的 SessionContextRetriever.exe。

for /f "tokens=*" %%f in (`C:\Scripts\SessionContextRetriever.exe`) do (
set var=%%f
)
chrome.exe %var%
pause

我们也很确定上下文实际上是通过 URL 代传入的,因为它显示在 URL 参数中。问题是,chrome 启动并直接转到新标签页,忽略会话上下文。

如有任何帮助,我们将不胜感激!

对于 运行 遇到此问题的任何人,文档使用了错误的引号。

for /f "tokens=*" %%f in ('C:\Scripts\SessionContextRetriever.exe') do ( 设置变量=%%f ) chrome.exe%变量% 暂停

而不是 ` 使用 '。