eclipse-equinox / equinox

equinox
Eclipse Public License 2.0
31 stars 65 forks source link

[MacOS] Opening file from command line fails #609

Open pbalint opened 4 months ago

pbalint commented 4 months ago

On Windows and Linux, you can start Eclipse via: eclipse(.exe) fileToBeOpened.txt to start Eclipse and automatically open a file, or open it in an existing instance and give focus.

On MacOS, this does not work (tested on MacOS 14 (Sonoma) and MacOS 12 (Monterey)): -When no instance is running, Eclipse starts but no file is opened -When an existing instance is running, executing the command tries to start another instance and then complaining about the workspace being in use...

To test, go to Eclipse.app/Contents/MacOS and run the command (for example): ./eclipse ../Eclipse/eclipse.ini