Skip to content

Commit

Permalink
fix(open): linux uses open before anything else
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 27, 2015
1 parent 0fcafb5 commit 4696d1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.0"
version = "1.0.1"
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $ open <path-or-url>
# Windows
$ start <path-or-url>
# Linux
$ xdg-open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url>
$ open <path-or-url> || xdg-open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url>
```

# Usage
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 &["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,
Expand Down

0 comments on commit 4696d1a

Please sign in to comment.