网页启动桌面应用程序 [英] Webpage launching desktop application

查看:166
本文介绍了网页启动桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我一直都接受这样的答案:由于明显的安全漏洞,无法通过javascript或html在本地计算机上打开程序.但是,目前针对基于浏览器的POS系统出现问题的最佳解决方案是为某些事情启动桌面应用程序.

Alright I have always accepted the answer of it's impossible to open a program on a local machine through javascript or html due to the obvious security vulnerabilities. However, the best solution we can find right now to a problem with a browser based POS system is to launch a desktop application for certain things.

我第二次猜测可能的原因是由于magnetLinks(除了单击它,我对它一无所知,我的浏览器提示我是否可以启动该应用程序,突然间uTorrent是我们具有对将要运行此Web应用程序的每台计算机的超级访问权限,并且可以以所需的任何方式配置该计算机,因此使用带有标志或任何选项的chrome运行chrome,我只希望避免安装activeX对象.

The reason i'm second guessing that it may be possible is because of magnetLinks(which i know little about other than that I click it and my browser prompts me whether it's okay to launch the application and all of a sudden uTorrent is running with the data loaded in it. We have root access to every machine that will be running this web application and can configure the machine in any way needed so running chrome with flags or whatever is an option, i would just prefer to avoid installing activeX objects.

但是,我也看到了另一个类似的问题.在这种情况下,所有运行该应用程序的机器都是由我们公司配置,安装和维护的.

I have seen another similar question, however; in this instance all of the machines running the application are configured, installed, and maintained by our company.

推荐答案

  • 您需要预先定义的协议.
  • 您的桌面应用需要作为协议的潜在处理程序注册到系统.
  • 您需要一个可以处理打开自定义协议的浏览器.
  • 由于您对信息亭拥有根访问权限,因此可以安装现代浏览器,例如Chrome或Firefox.然后,确保您的桌面应用程序使用该协议将其自身注册到系统.当浏览器打开链接时,它将检测到自定义协议,在系统中查找处理该自定义协议的应用程序,并将其建议给用户.通常,第一次访问该协议时,浏览器会提示您选择要安装的软件来处理该协议.

    Since you have root access to the kiosk you have, you can install a modern browser like Chrome or Firefox. Then, make sure your desktop application registers itself to the system with the protocol. When the browser opens the link, it detects the custom protocol, looks for an app in the system that handles it, and suggests it to the user. Usually the first time you access the protocol, the browser will throw a prompt to select which software installed should handle it.

    这篇关于网页启动桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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