URI在UWP应用程序中启动的应用程序是否也被沙箱化? [英] Are apps launched by URI in a UWP app also sandboxed?

查看:64
本文介绍了URI在UWP应用程序中启动的应用程序是否也被沙箱化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了UWP应用,并被要求添加一个按钮来启动第三方应用.第三方应用程序是使用Qt构建的,并具有一个exe作为主程序,该程序可以启动充当服务的第二个exe.UWP应用将在运行Windows 10的平板电脑上运行.

I inherited a UWP app and was asked to add a button to launch a 3rd party application. The 3rd party application is built with Qt and has an exe as the main program that launches a second exe that acts as a service. The UWP app is to be run on tablets running Windows 10.

我创建了一个安装程序,该安装程序为第3方应用程序的URI添加了注册表值,因此我可以进行URI激活(LaunchUriAsync方法).如果我将URI的目标更改为其他应用程序,则可以正常工作,因此我知道URI设置正确.

I created an installer that adds registry values for the URI for the 3rd party application so I can do URI activation (LaunchUriAsync method). If I change the target of the URI to a different application it works fine, so I know the URI is setup properly.

当我按下按钮时,第三方应用程序无法打开.我使用ProcMon查看发生了什么,并确认它开始打开,然后在启动第二个exe之前停止.什么都没有写到事件日志,因为那样会太有帮助了.

When I hit the button the 3rd party application does not open. I used ProcMon to see what was happening and confirmed that it begins opening but then stops before launching the second exe. Nothing is written to the event log because that would be too helpful.

我还没有找到有关此文档的任何文档,但是我必须假设从UWP应用程序启动的应用程序也已沙箱化.有谁知道这是正确的吗?除了将应用程序重建为WPF之类的东西外,我不确定该怎么办,但这并不是很吸引人.

I haven't found any documentation about this, but I have to assume that an application launched from a UWP app is also sandboxed. Does anyone know if this is correct? I'm not sure what to do other than rebuild the app as WPF or something and that isn't very appealing.

推荐答案

您的问题的答案是:不,它们没有在沙盒中运行.

The answer to your question is: no, that they are not being run sandboxed.

受支持的方案是从UWP通过协议启动以完全信任方式运行的应用程序(例如,如果Outlook是您的默认mailto:提供程序,则这就是撰写电子邮件的方式).

Launching an app that runs in fulltrust from a UWP via protocol is a supported scenario (e.g. that's how composing email works if Outlook is your default mailto: provider).

我怀疑您的协议注册或调用方式中缺少某些内容,但是问题中没有足够的细节来解决此问题.

I suspect that is something missing in your protocol registration, or how you invoke it, but there is not enough detail in the question to troubleshoot this.

这篇关于URI在UWP应用程序中启动的应用程序是否也被沙箱化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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