Re: Using a display connection name fails (through NewtFactory)
Posted by
Sven Gothel on
Jun 13, 2013; 8:26am
URL: https://forum.jogamp.org/Using-a-display-connection-name-fails-through-NewtFactory-tp4029333p4029391.html
On 06/13/2013 10:24 AM, gouessej [via jogamp] wrote:
> 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?
We agreed to name it X11_DEFAULT_DISPLAY
to avoid [future] collisions ..
~Sven