> Found it, it's in X11Util.initSingleton() the following line where
> 'null' means get the default:
>
> 'final long dpy = X11Lib.XOpenDisplay(null);'
>
> Actually, I just tried the environment variables hack
> (
http://stackoverflow.com/a/7201825/60982) but it didn't work and I
> guess it's because X11Lib.XOpenDisplay is a native method which has an
> own copy of the environment.
>
> So, to have a more proper solution, would you accept a patch like the
> following for the X11Util.initSingleton() method?
>
> instead of:
> 'final long dpy = X11Lib.XOpenDisplay(null);'
>
> this:
>
> final long dpy = X11Lib.XOpenDisplay(System.getProperty("DISPLAY"));
>
> If the property is not set (the default case), then getProperty()
> returns null and thus the old behavior is used.