Skip to content

Always use open on osx #2039

@brigand

Description

@brigand

Bringing this up for discussion. I don't know the rationale for the current behavior. I realize this is a bit of an edge case, and not the highest priority issue. I'll PR if there's interest.

Description

I run two instances of chrome on my computer. create-react-app is the only program that opens in the second browser instance on OSX.

To reproduce (warning, will use some HD space):

env '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --user-data-dir=~/.chrome-profile/foo

Leave that running, and then npm start in another terminal.

It opens in the second chrome instance.

Expected behavior

Should follow the normal OSX behavior of opening in the primary chrome instance, like open http://localhost:3000 does, or chat clients, etc.

Actual behavior

Opens in second instance.

Environment

$ npm ls react-scripts
[email protected] <dir>
└── [email protected]
$ node -v
v6.10.0
$ npm -v
3.10.10
  1. Operating system: OSX
  2. Browser and version: Chrome stable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions