diff --git a/Cargo.toml b/Cargo.toml index b5346c7..8d57e9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.0.0" +version = "1.0.1" authors = ["Sebastian Thiel "] license = "MIT" description = "Open a path or URL using the program configured on the system" diff --git a/README.md b/README.md index addf6c7..b804653 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ $ open # Windows $ start # Linux -$ xdg-open || gnome-open || kde-open +$ open || xdg-open || gnome-open || kde-open ``` # Usage diff --git a/src/lib.rs b/src/lib.rs index 283c423..44a0550 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ pub fn that(path: &str) -> IoResult { use std::old_io::IoError; let mut res = Err(IoError::from_errno(0, false)); - for program in &["xdg-open", "gnome-open", "kde-open"] { + for program in &["open", "xdg-open", "gnome-open", "kde-open"] { res = Command::new(program).arg(path).detached().status(); match res { Ok(_) => return res,