diff options
| author | lukeflo | 2025-03-20 20:22:47 +0100 |
|---|---|---|
| committer | lukeflo | 2025-03-20 20:22:47 +0100 |
| commit | 13be2874117c7369186f0742d206760e21db0c32 (patch) | |
| tree | a98f71a7570dce6fbb5a5e795dea73ff3e8155db /src/config.rs | |
| parent | 41f96448d10f7629584f3dce334b848926257d32 (diff) | |
| download | bibiman-13be2874117c7369186f0742d206760e21db0c32.tar.gz bibiman-13be2874117c7369186f0742d206760e21db0c32.zip | |
add default command for file opening for OS:
- freebsd, openbsd, netbsd, solaris, redox -> \'open\'
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index cd55b5c..b4b87d4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -222,8 +222,9 @@ impl BibiConfig { fn select_opener() -> String { match std::env::consts::OS { "linux" => String::from("xdg-open"), - "macos" => String::from("open"), + "macos" | "apple" => String::from("open"), "windows" => String::from("start"), + "freebsd" | "openbsd" | "netbsd" | "solaris" | "redox" => String::from("open"), _ => panic!("Couldn't detect OS for setting correct opener"), } } |
