Community
Participate
Working Groups
Normal X applications allow the user to specify the display that should be used through the -dispay command line option. Eclipse doesnot comply with this behaviour, the only way to set the display is through the environment variable DISPLAY, however this cannot be adapted from the PDE launch configuration. I would like to be able to start an eclipse instance in an Xnest server, so that the grabs (as sometimes done by the gtk swt implementation) are only effictive in that server.
Obviously, if the VM supports "-display" or an equivalent, then you should be able to pass it using the "-vmargs" command. Other than that, we would need to add a platform specific option to deal with this in the eclipse launcher. This is certainly possible, but not something we have done yet. [and there are issues, since for example, we would now need to explain that this option only works on the motif and gtk versions.] A possible workaround for your problem is to launch a custom VM which is actually a shell script that sets the variable and then launches the real VM. In any case, we'll investigate.
Would like ability to set display for a SWT shell programatically. (esp. on Linux GTK) An important use of this would be to allow a new Eclipse workbench to be opened on a different display. - A seperate 'New Workbench On' menu option that prompts user for the X display to open on. Why? : Multi-headed display unix machines, often use a separate X display for each monitor. Or even, for a poor man's dual headed display - I have 2 monitors and several computers (all single headed) - I would like to run Eclipse on one Linux box and open another workbench to another X display, on another host, which will come up in my other monitor.
You can always do: DISPLAY=:1.0 ./eclipse To display on a remote display. Also, the -display convention is really from Xt applications, and many modern X applications don't honour it (they usually instead have a --display option, if anything). Still, adding a -display command line option to the launcher may be a useful addition.
Does GTK have an option to set the display? That is, when starting the vm using JNI invocation so that it is in the same process as the eclipse executable, then gtk is initialized using the arguments that were passed on the initial command line: gtk_init_check(pArgc, &argv); So, if gtk had an option to set the display, it should Just Work in this case (if you are lucky) :)
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.