Bug 21401 - [launcher] Cannot start eclipse on another display with a -display parameter
Summary: [launcher] Cannot start eclipse on another display with a -display parameter
Status: NEW
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Launcher (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-09 09:40 EDT by Frank Cornelissen CLA
Modified: 2019-09-06 16:12 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Cornelissen CLA 2002-07-09 09:40:22 EDT
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.
Comment 1 Mike Wilson CLA 2002-07-09 10:09:01 EDT
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.
Comment 2 Mark Kralj-Taylor CLA 2002-10-30 17:29:30 EST
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.
Comment 3 Billy Biggs CLA 2005-05-29 12:05:00 EDT
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.
Comment 4 Andrew Niefer CLA 2007-07-19 17:37:39 EDT
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) :)
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:12:16 EDT
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.