0

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

Chris Cashwell
  • 20,898
  • 13
  • 60
  • 91
Dsynomic
  • 102
  • 7

2 Answers2

0

Please see my earlier answer here for a way to determine whether your product runs in a Citrix XenApp session.

Community
  • 1
  • 1
Helge Klein
  • 8,577
  • 8
  • 44
  • 69
0

Using the link from Helge above, I was able to identify an environment variable that I can test from within Java.

String SESSION_NAME_KEY = "SESSIONNAME";
String sessionname = System.getenv(SESSION_NAME_KEY);

if(sessionname != null && 
     (sessionname.startsWith("ICA") || sessionname.startsWith("RDP")))
    //Disable JOGL

I'm not sure this covers every situation, but it should work for what I'm looking for.

Dsynomic
  • 102
  • 7