From 30c96b1cb95c1e03bede218b8fb03bbd9ada9317 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 28 Feb 2015 21:18:32 +0100 Subject: [PATCH] fix(open): don't use 'open' on linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ➜ ~ open -h Usage: open [OPTIONS] -- command Because ... This utility help you to start a program on a new virtual terminal (VT). Options: -c, --console=NUM use the given VT number; -e, --exec execute the command, without forking; -f, --force force opening a VT without checking; -l, --login make the command a login shell; -u, --user figure out the owner of the current VT; -s, --switch switch to the new VT; -w, --wait wait for command to complete; -v, --verbose print a message for each action; -V, --version print program version and exit; -h, --help output a brief help message. --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d57e9b..2068106 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "open" -version = "1.0.1" +version = "1.0.2" authors = ["Sebastian Thiel "] license = "MIT" description = "Open a path or URL using the program configured on the system" diff --git a/src/lib.rs b/src/lib.rs index 44a0550..283c423 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 &["open", "xdg-open", "gnome-open", "kde-open"] { + for program in &["xdg-open", "gnome-open", "kde-open"] { res = Command::new(program).arg(path).detached().status(); match res { Ok(_) => return res,