diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-11 09:50:09 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-09-11 09:51:01 -0400 |
commit | f117ddaccb996942774d9efee9c5807fe7272ded (patch) | |
tree | 21a0958d9502a149064ee99a2827c49d3d7294e2 /src/main.rs | |
parent | 1908ff94b7e5f981a4254ca697056a299b2e6b51 (diff) |
add mimetype support via file command
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 2b3f171..1446474 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ use structopt::StructOpt; use crate::commands::quit::QuitAction; use crate::config::{ - AppConfig, AppKeyMapping, AppMimetypeRegistry, AppTheme, JoshutoPreview, TomlConfigFile, + AppConfig, AppKeyMapping, AppProgramRegistry, AppTheme, JoshutoPreview, TomlConfigFile, }; use crate::context::AppContext; use crate::error::JoshutoError; @@ -67,7 +67,7 @@ lazy_static! { config_dirs }; static ref THEME_T: AppTheme = AppTheme::get_config(THEME_FILE); - static ref MIMETYPE_T: AppMimetypeRegistry = AppMimetypeRegistry::get_config(MIMETYPE_FILE); + static ref MIMETYPE_T: AppProgramRegistry = AppProgramRegistry::get_config(MIMETYPE_FILE); static ref PREVIEW_T: JoshutoPreview = JoshutoPreview::get_config(PREVIEW_FILE); static ref HOME_DIR: Option<PathBuf> = dirs_next::home_dir(); |