Skip to content

Commit

Permalink
8214069: Use xdg-open to get default web browser on Linux systems
Browse files Browse the repository at this point in the history
Reviewed-by: kcr, jvos
Contributed-by: Tristan Deloche <[email protected]>
  • Loading branch information
kcr committed Nov 30, 2018
1 parent f99c99a commit ead41d9
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,14 @@ private String toURIString(String filePath) {
return toURIString(System.getProperty("user.dir"));
}

static final String[] browsers = {"google-chrome", "firefox", "opera",
"konqueror", "mozilla"};
static final String[] browsers = {
"xdg-open",
"google-chrome",
"firefox",
"opera",
"konqueror",
"mozilla"
};

@Override
public void showDocument(final String uri) {
Expand Down

0 comments on commit ead41d9

Please sign in to comment.