【问题标题】:Appstream 2.0 failing to pass session contextAppstream 2.0 未能传递会话上下文
【发布时间】:2018-08-15 21:39:34
【问题描述】:

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

我们已使用 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 启动并直接进入新标签页,忽略会话上下文。

对此的任何帮助将不胜感激!

【问题讨论】:

    标签: amazon-web-services command-line-interface aws-appstream


    【解决方案1】:

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

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

    而不是`使用'。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-29
      • 2016-11-22
      • 2015-09-13
      • 2013-05-01
      • 2016-01-11
      • 2011-05-07
      相关资源
      最近更新 更多