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

cmd/cover: go tool cover -html invokes Fierfox regardless it not being the default browser #6622

cznic opened this issue Oct 19, 2013 · 6 comments


Copy link

cznic commented Oct 19, 2013

Linux Mint 15 64bit, default browser Chrome. I'm aware it might be a Mint bug, but I
failed to find any such.
Copy link

Comment 1:

Does linux mint have this command: sensible-browser ? If so, which browser is invoked
when you execute this command.

Copy link
Contributor Author

cznic commented Oct 19, 2013

Comment 2:

It has that command. Executing it like below
$ sensible-browser 
Ve stávající relaci prohlížeče bylo vytvořeno nové okno.
results in a new window (not tab) is created in Chrome. The message is the .cz locale
version of ~ "A new window was created in the current browser session".

Copy link

minux commented Oct 20, 2013

Comment 3:

cmd/cover uses xdg-open file://xxx to open the browser, and it is supposed
to open the web page using the default browser.
i suspect it's a system configuration problem.

Copy link

Comment 4:

What does pprof use? Ideally they should be the same.

Copy link

adg commented Oct 21, 2013

Comment 5:

Agree, I think it must be a system config issue. Unless there is a better broadly-useful
way of opening a browser.

Status changed to WorkingAsIntended.

Copy link

minux commented Oct 21, 2013

Comment 6:

Re #4, in fact, pprof uses the following hardcoded list of browsers:
perhaps it should also use xdg-open on unix.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

5 participants