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

Closed
cznic opened this issue Oct 19, 2013 · 6 comments

Comments

@cznic
Copy link
Contributor

@cznic 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.
@davecheney
Copy link
Contributor

@davecheney davecheney commented Oct 19, 2013

Comment 1:

Does linux mint have this command: sensible-browser ? If so, which browser is invoked
when you execute this command.
sensible-browser http://golang.org/
@cznic
Copy link
Contributor Author

@cznic 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".
@minux
Copy link
Member

@minux 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.
@davecheney
Copy link
Contributor

@davecheney davecheney commented Oct 20, 2013

Comment 4:

What does pprof use? Ideally they should be the same.
@adg
Copy link
Contributor

@adg 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.

@minux
Copy link
Member

@minux minux commented Oct 21, 2013

Comment 6:

Re #4, in fact, pprof uses the following hardcoded list of browsers:
    "/etc/alternatives/gnome-www-browser",
    "/etc/alternatives/x-www-browser",
    "google-chrome",
    "firefox",
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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.