Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #429546 +++ Alex Blewitt notes: > FWIW the Mac version of this uses 'open' with -a as the application id. Any arguments are currently dropped, but adding —args to the end of the open command will pass arguments through, e.g. > > open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --kiosk
"--args" was added in OS X 10.6 (Snow Leopard), so I think it's pretty safe to assume its presence. http://superuser.com/questions/180995/passing-command-line-args-to-open-on-mac#comment182858_181060
New Gerrit change created: https://git.eclipse.org/r/45461
Gerrit change https://git.eclipse.org/r/45461 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=78cb5dc8ea5ef47b5e38ae532f62bc0dafaeec5c
* Fix NPE when using Open Browser command from Quick Access (org.eclipse.ui.browser.openBrowser) * Use open(1) only if an app bundle is specified, otherwise treat as command-line launch * Hook in StreamConsumer to report launch messages to browser.log * Fix WebBrowserUtil#reportError as it assumed it was running on the SWT thread, which is not true with external browsers
Failing in I20150428-0800 when the app is specified as an app bundle (e.g., /Application/Google Chrome.app) rather than a full path to its binary (/Applications/Google Chrome.app/Contents/MacOS/Google Chrome) and there is a browser instance already running. I must have somehow only tested with no browser instance running. The "--args" arguments seem to be ignored when there is an already running instance, which makes sense as open(1) expects the URL to be specified before the "--args".
New Gerrit change created: https://git.eclipse.org/r/46723
New Gerrit change created: https://git.eclipse.org/r/46724
Both linked Gerrit reviews are abandoned. Is there still something to do here?
Sorry Lars, I committed it directly as commit 67d4a262. I forgot to put the change-id on it, so another change-set wasn't committed.
Verified in I20150504-2000