Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to launch with --user-data-dir=(default chrome data directory) and actually connect? #270

Open
josh3336 opened this issue Jun 10, 2022 · 2 comments

Comments

@josh3336
Copy link

It seems to create a tab in my current browser but it doesn't seem to ever create a process on the given port. In the example for instance port 64043 has nothing on it. But when I create a temp user data dir, it works fine.

LH:ChromeLauncher:verbose "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --remote-debugging-port=64043 --user-data-dir=/Users/joshuapagano/Library/Application Support/Google/Chrome/ --disable-extensions --profile-directory=Profile 2 https://sherdog.com +5ms
LH:ChromeLauncher:verbose Chrome running with pid 55869 on port 64043. +4ms
LH:ChromeLauncher Waiting for browser. +1ms
LH:ChromeLauncher Waiting for browser... +0ms
LH:ChromeLauncher Waiting for browser..... +503ms
LH:ChromeLauncher Waiting for browser....... +502ms
LH:ChromeLauncher Waiting for browser......... +502ms
LH:ChromeLauncher Waiting for browser........... +501ms
LH:ChromeLauncher Waiting for browser............. +500ms
LH:ChromeLauncher Waiting for browser............... +501ms
LH:ChromeLauncher Waiting for browser................. +501ms
LH:ChromeLauncher Waiting for browser................... +501ms
LH:ChromeLauncher Waiting for browser..................... +501ms
LH:ChromeLauncher Waiting for browser....................... +501ms
LH:ChromeLauncher Waiting for browser......................... +501ms

@paulirish
Copy link
Member

if you already have a chrome using this userdatadir then any invocation is just gonna make a tab in that existing chrome.
there's probably a stderr message that says that, but unfortunately you currently don't see that in the output.

eg
image

you could just duplicate that folder somewhere else and then use that.

also i imagine you want "Profile 2" to be quoted in that cmd.

@paulirish
Copy link
Member

leaving open so we can make sure the 'opening in existing browser session' message is correctly surfaced in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants