refactor(linux): move Linux-specific mime.rs and workarounds.rs to utils/linux

This commit is contained in:
Slinetrac
2025-12-25 13:18:55 +08:00
parent 4ab2720ac4
commit 712b8ff19b
6 changed files with 5 additions and 5 deletions

View File

@@ -230,7 +230,7 @@ pub fn run() {
}
#[cfg(target_os = "linux")]
utils::workarounds::apply_nvidia_dmabuf_renderer_workaround();
utils::linux::workarounds::apply_nvidia_dmabuf_renderer_workaround();
let _ = utils::dirs::init_portable_flag();

View File

@@ -493,7 +493,7 @@ pub fn init_scheme() -> Result<()> {
}
}
crate::utils::mime::ensure_mimeapps_entries(DESKTOP_FILE, DEEP_LINK_SCHEMES)?;
crate::utils::linux::mime::ensure_mimeapps_entries(DESKTOP_FILE, DEEP_LINK_SCHEMES)?;
Ok(())
}
#[cfg(target_os = "macos")]

View File

@@ -0,0 +1,2 @@
pub mod mime;
pub mod workarounds;

View File

@@ -5,7 +5,7 @@ pub mod help;
pub mod i18n;
pub mod init;
#[cfg(target_os = "linux")]
pub mod mime;
pub mod linux;
pub mod network;
pub mod notification;
pub mod resolve;
@@ -13,5 +13,3 @@ pub mod server;
pub mod singleton;
pub mod tmpl;
pub mod window_manager;
#[cfg(target_os = "linux")]
pub mod workarounds;