From 1c7561accf7d5c0aa6205ebc2a8c9319f23c1ce9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 4 Mar 2024 12:49:23 -0700 Subject: [PATCH] Do not use mime apps fallback, will be adjusted in session --- src/tab.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index c167a5b..2d74363 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -241,13 +241,7 @@ pub fn scan_path(tab_path: &PathBuf, sizes: IconSizes) -> Vec { ) }; - let mut open_with = mime_apps(&mime); - if open_with.is_empty() { - //TODO: more fallbacks - if mime.type_() == "text" { - open_with = mime_apps(&mime::TEXT_PLAIN); - } - } + let open_with = mime_apps(&mime); let thumbnail_res_opt = if mime.type_() == "image" { None