Skip to content

Commit 043d89f

Browse files
committed
Merge branch 'v2' of https://github.com/tauri-apps/plugins-workspace into feature/fallback_targets
2 parents c13e583 + 27ddcd0 commit 043d89f

File tree

16 files changed

+181
-160
lines changed

16 files changed

+181
-160
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@iconify-json/codicon": "^1.2.12",
3737
"@iconify-json/ph": "^1.2.2",
3838
"@sveltejs/vite-plugin-svelte": "^6.0.0",
39-
"@tauri-apps/cli": "2.7.0",
39+
"@tauri-apps/cli": "2.7.1",
4040
"@unocss/extractor-svelte": "^66.3.3",
4141
"svelte": "^5.20.4",
4242
"unocss": "^66.3.3",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"rollup": "4.45.1",
2424
"tslib": "2.8.1",
2525
"typescript": "5.8.3",
26-
"typescript-eslint": "8.37.0"
26+
"typescript-eslint": "8.38.0"
2727
},
2828
"pnpm": {
2929
"overrides": {

plugins/deep-link/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## \[2.4.1]
4+
5+
- [`d4f8299b`](https://github.com/tauri-apps/plugins-workspace/commit/d4f8299b12f107718c70692840a63768d65baaf9) ([#2844](https://github.com/tauri-apps/plugins-workspace/pull/2844) by [@yobson1](https://github.com/tauri-apps/plugins-workspace/../../yobson1)) Fix deep link protocol handler not set as default on linux
6+
Fix duplicate protocols added to MimeType section in .desktop files on linux
7+
38
## \[2.4.0]
49

510
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6

plugins/deep-link/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tauri-plugin-deep-link"
3-
version = "2.4.0"
3+
version = "2.4.1"
44
description = "Set your Tauri application as the default handler for an URL"
55
authors = { workspace = true }
66
license = { workspace = true }
@@ -17,9 +17,9 @@ targets = ["x86_64-linux-android"]
1717
[package.metadata.platforms.support]
1818
windows = { level = "full", notes = "" }
1919
linux = { level = "full", notes = "" }
20-
macos = { level = "partial", notes = "Runtime deep link registration is not supported" }
21-
android = { level = "partial", notes = "Runtime deep link registration is not supported" }
22-
ios = { level = "partial", notes = "Runtime deep link registration is not supported" }
20+
macos = { level = "partial", notes = "Deep links must be registered in config. Dynamic registration at runtime is not supported." }
21+
android = { level = "partial", notes = "Deep links must be registered in config. Dynamic registration at runtime is not supported." }
22+
ios = { level = "partial", notes = "Deep links must be registered in config. Dynamic registration at runtime is not supported." }
2323

2424
[build-dependencies]
2525
serde = { workspace = true }

plugins/deep-link/examples/app/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## \[2.2.4]
4+
5+
### Dependencies
6+
7+
- Upgraded to `[email protected]`
8+
39
## \[2.2.3]
410

511
### Dependencies

plugins/deep-link/examples/app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "deep-link-example",
33
"private": true,
4-
"version": "2.2.3",
4+
"version": "2.2.4",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -11,10 +11,10 @@
1111
},
1212
"dependencies": {
1313
"@tauri-apps/api": "2.7.0",
14-
"@tauri-apps/plugin-deep-link": "2.4.0"
14+
"@tauri-apps/plugin-deep-link": "2.4.1"
1515
},
1616
"devDependencies": {
17-
"@tauri-apps/cli": "2.7.0",
17+
"@tauri-apps/cli": "2.7.1",
1818
"typescript": "^5.7.3",
1919
"vite": "^7.0.4"
2020
}

plugins/deep-link/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tauri-apps/plugin-deep-link",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "Set your Tauri application as the default handler for an URL",
55
"license": "MIT OR Apache-2.0",
66
"authors": [

plugins/deep-link/src/lib.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,14 @@ mod imp {
303303

304304
if let Ok(mut desktop_file) = ini::Ini::load_from_file(&target_file) {
305305
if let Some(section) = desktop_file.section_mut(Some("Desktop Entry")) {
306-
let old_mimes = section.remove("MimeType");
307-
section.append(
308-
"MimeType",
309-
format!("{mime_type};{}", old_mimes.unwrap_or_default()),
310-
);
311-
desktop_file.write_to_file(&target_file)?;
306+
// it's ok to remove it - we only write to the file if it's missing
307+
// and in that case we include old_mimes
308+
let old_mimes = section.remove("MimeType").unwrap_or_default();
309+
310+
if !old_mimes.split(';').any(|mime| mime == mime_type) {
311+
section.append("MimeType", format!("{mime_type};{old_mimes}"));
312+
desktop_file.write_to_file(&target_file)?;
313+
}
312314
}
313315
} else {
314316
let mut file = File::create(target_file)?;
@@ -333,7 +335,7 @@ mod imp {
333335
.status()?;
334336

335337
Command::new("xdg-mime")
336-
.args(["default", &file_name, _protocol.as_ref()])
338+
.args(["default", &file_name, mime_type.as_str()])
337339
.status()?;
338340

339341
Ok(())

plugins/shell/guest-js/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class Command<O extends IOPayload> extends EventEmitter<CommandEvents> {
388388
* Creates a new `Command` instance.
389389
*
390390
* @param program The program name to execute.
391-
* It must be configured on `tauri.conf.json > plugins > shell > scope`.
391+
* It must be configured in your project's capabilities.
392392
* @param args Program arguments.
393393
* @param options Spawn options.
394394
*/
@@ -425,7 +425,7 @@ class Command<O extends IOPayload> extends EventEmitter<CommandEvents> {
425425
* ```
426426
*
427427
* @param program The program to execute.
428-
* It must be configured on `tauri.conf.json > plugins > shell > scope`.
428+
* It must be configured in your project's capabilities.
429429
*/
430430
static create<O extends IOPayload>(
431431
program: string,
@@ -457,7 +457,7 @@ class Command<O extends IOPayload> extends EventEmitter<CommandEvents> {
457457
* ```
458458
*
459459
* @param program The program to execute.
460-
* It must be configured on `tauri.conf.json > plugins > shell > scope`.
460+
* It must be configured in your project's capabilities.
461461
*/
462462
static sidecar<O extends IOPayload>(
463463
program: string,

0 commit comments

Comments
 (0)