Compare commits

..

2 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
84c1893a63 Merge branch 'dev' into chore/update-mime-type-doc 2026-04-16 15:57:39 -03:00
Lucas Nogueira
6a3078880e chore(tauri-utils): update mime_type documentation 2026-04-16 15:04:06 -03:00
3 changed files with 9 additions and 3 deletions

View File

@@ -2492,7 +2492,7 @@
]
},
"mimeType": {
"description": "The mime-type e.g. 'image/png' or 'text/plain'. Linux-only.",
"description": "The mime-type of the association, e.g. `'image/png'` or `'text/plain'`.\n\n - **Linux**: written as `MimeType=` in the `.desktop` file.\n - **macOS / iOS**: added as `public.mime-type` in the `UTTypeTagSpecification` dictionary of\n the `UTExportedTypeDeclarations` entry in `Info.plist`.\n - **Android**: used as `android:mimeType` in the `<data>` element of an `<intent-filter>`\n in `AndroidManifest.xml`.",
"type": [
"string",
"null"

View File

@@ -2492,7 +2492,7 @@
]
},
"mimeType": {
"description": "The mime-type e.g. 'image/png' or 'text/plain'. Linux-only.",
"description": "The mime-type of the association, e.g. `'image/png'` or `'text/plain'`.\n\n - **Linux**: written as `MimeType=` in the `.desktop` file.\n - **macOS / iOS**: added as `public.mime-type` in the `UTTypeTagSpecification` dictionary of\n the `UTExportedTypeDeclarations` entry in `Info.plist`.\n - **Android**: used as `android:mimeType` in the `<data>` element of an `<intent-filter>`\n in `AndroidManifest.xml`.",
"type": [
"string",
"null"

View File

@@ -1197,7 +1197,13 @@ pub struct FileAssociation {
/// The app's role with respect to the type. Maps to `CFBundleTypeRole` on macOS.
#[serde(default)]
pub role: BundleTypeRole,
/// The mime-type e.g. 'image/png' or 'text/plain'. Linux-only.
/// The mime-type of the association, e.g. `'image/png'` or `'text/plain'`.
///
/// - **Linux**: written as `MimeType=` in the `.desktop` file.
/// - **macOS / iOS**: added as `public.mime-type` in the `UTTypeTagSpecification` dictionary of
/// the `UTExportedTypeDeclarations` entry in `Info.plist`.
/// - **Android**: used as `android:mimeType` in the `<data>` element of an `<intent-filter>`
/// in `AndroidManifest.xml`.
#[serde(alias = "mime-type")]
pub mime_type: Option<String>,
/// The ranking of this app among apps that declare themselves as editors or viewers of the given file type. Maps to `LSHandlerRank` on macOS.