Skip to content

Handle opening browser with opener crate#5888

Merged
bors merged 1 commit into
rust-lang:masterfrom
Seeker14491:opener
Aug 15, 2018
Merged

Handle opening browser with opener crate#5888
bors merged 1 commit into
rust-lang:masterfrom
Seeker14491:opener

Conversation

@Seeker14491

Copy link
Copy Markdown
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
Copy Markdown

r? @matklad

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

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

Thanks for this @Seeker14491!

@bors

bors commented Aug 15, 2018

Copy link
Copy Markdown
Contributor

📌 Commit 48d0708 has been approved by alexcrichton

@bors

bors commented Aug 15, 2018

Copy link
Copy Markdown
Contributor

⌛ 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

bors commented Aug 15, 2018

Copy link
Copy Markdown
Contributor

☀️ 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