Skip to content

Commit

Permalink
fix(open): don't use 'open' on linux
Browse files Browse the repository at this point in the history
  ➜  ~  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.
  • Loading branch information
Byron committed Feb 28, 2015
1 parent 4696d1a commit 30c96b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "open"
version = "1.0.1"
version = "1.0.2"
authors = ["Sebastian Thiel <[email protected]>"]
license = "MIT"
description = "Open a path or URL using the program configured on the system"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn that(path: &str) -> IoResult<ProcessExit> {
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,
Expand Down

0 comments on commit 30c96b1

Please sign in to comment.