Skip to content

Commit 4696d1a

Browse files
committed
fix(open): linux uses open before anything else
See http://goo.gl/XTXpLM
1 parent 0fcafb5 commit 4696d1a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "open"
4-
version = "1.0.0"
4+
version = "1.0.1"
55
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
66
license = "MIT"
77
description = "Open a path or URL using the program configured on the system"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $ open <path-or-url>
88
# Windows
99
$ start <path-or-url>
1010
# Linux
11-
$ xdg-open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url>
11+
$ open <path-or-url> || xdg-open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url>
1212
```
1313

1414
# Usage

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn that(path: &str) -> IoResult<ProcessExit> {
2727
use std::old_io::IoError;
2828

2929
let mut res = Err(IoError::from_errno(0, false));
30-
for program in &["xdg-open", "gnome-open", "kde-open"] {
30+
for program in &["open", "xdg-open", "gnome-open", "kde-open"] {
3131
res = Command::new(program).arg(path).detached().status();
3232
match res {
3333
Ok(_) => return res,

0 commit comments

Comments
 (0)