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

Why is user mode downloading new browser? #1130

Closed
rew1nter opened this issue Oct 20, 2024 · 5 comments
Closed

Why is user mode downloading new browser? #1130

rew1nter opened this issue Oct 20, 2024 · 5 comments
Labels
question Questions related to rod

Comments

@rew1nter
Copy link

rew1nter commented Oct 20, 2024

Rod Version: v0.116.2

The code to demonstrate your question

I'm trying to launch my browser with session with the following code:

func main() {

	path := "/usr/bin/chromium"
	wsURL := launcher.NewUserMode().Bin(path).Headless(false).MustLaunch()
	browser := rod.New().ControlURL(wsURL).MustConnect().NoDefaultDevice()
}

What you got

Upon running, rod starts downloading a browser. When I already have chromium

What you expect to see

The system chromium browser start with my session

@rew1nter rew1nter added the question Questions related to rod label Oct 20, 2024
Copy link

Please fix the format of your markdown:

6 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```go"]

generated by check-issue

@ysmood
Copy link
Member

ysmood commented Oct 20, 2024

The code works fine for me.

@rew1nter
Copy link
Author

I'm on Arch linux. Is there anything I can provide you with to troubleshoot the issue?

@ysmood
Copy link
Member

ysmood commented Oct 21, 2024

If you run launcher.NewUserMode().Bin(path).Headless(false).MustLaunch() alone, will it download the browser?

@rew1nter
Copy link
Author

Hello,
I don't know what happened but the same code is working all of a sudden :/
Thanks

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

No branches or pull requests

2 participants