Community
Participate
Working Groups
To support opening files from the command line on gtk, SWT attaches a "SWT_Window_ + APP_NAME" atom to a hidden window and listens for the "org.eclipse.swt.filePath.message" property. If a second eclipse instance is started, this second instance "steals" the atom from the previously running eclipse. Then, if that second instance is closed, there is no loner any window with the "SWT_Window + APP_NAME" atom attached to it. Launching a self-hosted eclipse session will cause this, and once that debug session is terminated, any future open file attempts will result in a new eclipse instance instead of reusing the original eclipse. I would suggest that we should first check to see if there is any existing window with the atom, and if so, leave it and not set the atom on our own shell. This means the first eclipse always keeps receive the open file messages regardless of other instances starting and stopping.
Created attachment 171870 [details] proposed patch
*** Bug 326262 has been marked as a duplicate of this bug. ***
*** Bug 343664 has been marked as a duplicate of this bug. ***
X atoms are no longer suitable. Migration to dbus is ongoing and dbus ownership is passed back to the previous window. *** This bug has been marked as a duplicate of bug 528414 ***