确定应用程序是否正在远程系统上运行
我正在使用 Java Webstart 应用程序,如果我们在 Citrix 或 rdesktop 等远程系统上运行,我们会尝试在应用程序启动时禁用 JOGL。
我有适当的代码来禁用 JOGL,但我无法确定它何时通过 Citrix 运行。系统属性似乎与从本地计算机运行应用程序相同。
任何想法或建议都会有帮助。
谢谢
I'm working with a Java webstart application and we're trying to disable JOGL when the application starts if we're running on a remote system such as Citrix or rdesktop.
I have the code in place to disable JOGL, but I'm having trouble determining when it is running through Citrix. The system properties appear to be the same as a running the application from my local machine.
Any ideas or suggestions would be helpful.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅我之前的回答此处了解确定您的产品是否在 Citrix XenApp 会话中运行的方法。
Please see my earlier answer here for a way to determine whether your product runs in a Citrix XenApp session.
使用上面 Helge 的链接,我能够识别一个可以在 Java 中测试的环境变量。
我不确定这是否涵盖了所有情况,但它应该适合我正在寻找的东西。
Using the link from Helge above, I was able to identify an environment variable that I can test from within Java.
I'm not sure this covers every situation, but it should work for what I'm looking for.