Login  Register

Re: Using a display connection name fails (through NewtFactory)

Posted by gouessej on Jun 13, 2013; 8:24am
URL: https://forum.jogamp.org/Using-a-display-connection-name-fails-through-NewtFactory-tp4029333p4029389.html

neothemachine wrote
gouessej [via jogamp] wrote:
> Maik, would it be enough for you? System.getProperty() returns a system
> property, not the value of an environment variable unlike
> System.getenv().get().

That's the point :)

Jogl already uses the environment variable (a bit hidden through the
'null' value of X11Lib.XOpenDisplay(null). What I want is to force Jogl
to use a different (custom) value instead. And the key is that it's not
possible to change environment variables, but it is possible to change
system properties.
Ok but then, should we name it "DISPLAY"? Shouldn't we pick a more specific name? x11.newt.display? whatever?
Julien Gouesse | Personal blog | Website