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

Handle opening browser with opener crate #5888

Merged
merged 1 commit into from
Aug 15, 2018
Merged

Conversation

Seeker14491
Copy link
Contributor

Fixes #5701

A note about behavior on Linux:
When looking for a browser to open the docs with, Cargo currently tries the $BROWSER environment variable, xdg-open, gnome-open, and finally kde-open, in that order. With this commit, this behavior changes; the opener crate always uses the xdg-open script, which is included in the opener crate. The xdg-open script takes care of finding a suitable browser.

@rust-highfive
Copy link

r? @matklad

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+

Thanks for this @Seeker14491!

@bors
Copy link
Collaborator

bors commented Aug 15, 2018

📌 Commit 48d0708 has been approved by alexcrichton

@bors
Copy link
Collaborator

bors commented Aug 15, 2018

⌛ Testing commit 48d0708 with merge 6cc8320...

bors added a commit that referenced this pull request Aug 15, 2018
Handle opening browser with `opener` crate

Fixes #5701

A note about behavior on Linux:
When looking for a browser to open the docs with, Cargo currently tries the `$BROWSER` environment variable, `xdg-open`, `gnome-open`, and finally `kde-open`, in that order. With this commit, this behavior changes; the `opener` crate always uses the `xdg-open` script, which is included in the `opener` crate. The `xdg-open` script takes care of finding a suitable browser.
@bors
Copy link
Collaborator

bors commented Aug 15, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 6cc8320 to master...

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

Successfully merging this pull request may close these issues.

cargo doc --open hijacks terminal if browser is not already opened
6 participants