diff --git a/src/desktop.rs b/src/desktop.rs
index 21b50aca..c8a7ab9e 100644
--- a/src/desktop.rs
+++ b/src/desktop.rs
@@ -1,10 +1,10 @@
+#[cfg(not(windows))]
pub use freedesktop_desktop_entry::DesktopEntry;
+#[cfg(not(windows))]
pub use mime::Mime;
-use std::{
- borrow::Cow,
- ffi::OsStr,
- path::{Path, PathBuf},
-};
+use std::path::{Path, PathBuf};
+#[cfg(not(windows))]
+use std::{borrow::Cow, ffi::OsStr};
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum IconSource {
@@ -42,12 +42,14 @@ impl Default for IconSource {
}
}
+#[cfg(not(windows))]
#[derive(Debug, Clone, PartialEq)]
pub struct DesktopAction {
pub name: String,
pub exec: String,
}
+#[cfg(not(windows))]
#[derive(Debug, Clone, PartialEq, Default)]
pub struct DesktopEntryData {
pub id: String,
@@ -62,6 +64,7 @@ pub struct DesktopEntryData {
pub prefers_dgpu: bool,
}
+#[cfg(not(windows))]
pub fn load_applications<'a>(
locale: impl Into