Hi,

I'm having some quite edge-case issues, launching chrome from Java on Mac.

Launching in Windows/Linux, calling Runtime.getRuntime().exec(new
String[] {"path/to/chrome", flag1, flag2});

works fine

Launching from Mac, doing so starts the Google Chrome process, but
does *not* give it a window/focus.  I've tried throwing in a URL to
get after the flags, and still it launches no window until I click on
it in the dock.

I can get around this by then running applescript: tell application
"Google Chrome" to activate

But this only works for the case where there is one instance of Chrome
(unfortunately, I'm purposefully launching multiple instances with
different profiles).

When launching Chrome from the terminal, it opens a window properly.
When using the applescript do shell script "..." in Java, it launches
without a window.

Does anyone either:

a) Know why Chrome launches without a window, and know how to fix it?
or
b) (Less ideal) Know how to use AppleScript to traverse all running
Chrome instances to activate them all?

Thanks,

Daniel

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to