Skip to content

Commit

Permalink
feat: support for Android platform in the for qualifier of opener (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi authored Dec 14, 2024
1 parent 196a46c commit c1048de
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions yazi-config/src/open/opener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ pub struct Opener {
impl Opener {
pub fn take(mut self) -> Option<Self> {
if let Some(for_) = self.for_.take() {
match for_.as_bytes() {
b"unix" if cfg!(unix) => {}
b"windows" if cfg!(windows) => {}
b"linux" if cfg!(target_os = "linux") => {}
b"macos" if cfg!(target_os = "macos") => {}
match for_.as_str() {
"unix" if cfg!(unix) => {}
os if os == std::env::consts::OS => {}
_ => return None,
}
}
Expand Down

0 comments on commit c1048de

Please sign in to comment.