Skip to content

Commit 383e636

Browse files
authored
feat: add tauri-plugin-opener (#2019)
1 parent 1051db4 commit 383e636

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2346
-7
lines changed

.changes/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"dialog",
6363
"fs",
6464
"global-shortcut",
65+
"opener",
6566
"http",
6667
"nfc",
6768
"notification",
@@ -87,6 +88,7 @@
8788
"dialog-js",
8889
"fs-js",
8990
"global-shortcut-js",
91+
"opener-js",
9092
"http-js",
9193
"nfc-js",
9294
"notification-js",
@@ -186,6 +188,14 @@
186188
"path": "./plugins/global-shortcut",
187189
"manager": "javascript"
188190
},
191+
"opener": {
192+
"path": "./plugins/opener",
193+
"manager": "rust"
194+
},
195+
"opener-js": {
196+
"path": "./plugins/opener",
197+
"manager": "javascript"
198+
},
189199
"haptics": {
190200
"path": "./plugins/haptics",
191201
"manager": "rust"

.changes/opener-initial.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"opener": "major"
3+
"opener-js": "major"
4+
---
5+
6+
Initial Release

.github/workflows/check-generated-files.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
- .github/workflows/check-generated-files.yml
5454
- plugins/global-shortcut/guest-js/**
5555
- plugins/global-shortcut/src/api-iife.js
56+
opener:
57+
- .github/workflows/check-generated-files.yml
58+
- plugins/opener/guest-js/**
59+
- plugins/opener/src/api-iife.js
5660
haptics:
5761
- .github/workflows/check-generated-files.yml
5862
- plugins/haptics/guest-js/**

.github/workflows/lint-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
tauri-plugin-global-shortcut:
6767
- .github/workflows/lint-rust.yml
6868
- plugins/global-shortcut/**
69+
tauri-plugin-opener:
70+
- .github/workflows/lint-rust.yml
71+
- plugins/opener/**
6972
tauri-plugin-haptics:
7073
- .github/workflows/lint-rust.yml
7174
- plugins/haptics/**

.github/workflows/test-rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ jobs:
7777
- .github/workflows/test-rust.yml
7878
- Cargo.toml
7979
- plugins/global-shortcut/**
80+
tauri-plugin-opener:
81+
- .github/workflows/test-rust.yml
82+
- Cargo.toml
83+
- plugins/opener/**
8084
tauri-plugin-haptics:
8185
- .github/workflows/test-rust.yml
8286
- Cargo.toml

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ url = "2"
2121
schemars = "0.8"
2222
dunce = "1"
2323
specta = "=2.0.0-rc.20"
24+
glob = "0.3"
25+
zbus = "4"
2426
#tauri-specta = "=2.0.0-rc.11"
2527

2628
[workspace.package]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This repo and all plugins require a Rust version of at least **1.77.2**
2222
| [log](plugins/log) | Configurable logging. ||||||
2323
| [nfc](plugins/nfc) | Read and write NFC tags on Android and iOS. | ? | ? | ? |||
2424
| [notification](plugins/notification) | Send message notifications (brief auto-expiring OS window element) to your user. Can also be used with the Notification Web API. ||||||
25+
| [opener](plugins/opener) | Open files and URLs using their default application. |||| ? | ? |
2526
| [os](plugins/os) | Read information about the operating system. ||||||
2627
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. |||| ? | ? |
2728
| [positioner](plugins/positioner) | Move windows to common locations. ||||||

examples/api/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@tauri-apps/plugin-fs": "2.0.2",
2020
"@tauri-apps/plugin-geolocation": "2.0.0",
2121
"@tauri-apps/plugin-global-shortcut": "2.0.0",
22+
"@tauri-apps/plugin-opener": "1.0.0",
2223
"@tauri-apps/plugin-haptics": "2.0.0",
2324
"@tauri-apps/plugin-http": "2.0.1",
2425
"@tauri-apps/plugin-nfc": "2.0.0",

examples/api/src-tauri/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ tauri-plugin-notification = { path = "../../../plugins/notification", version =
3333
] }
3434
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.1" }
3535
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.1" }
36+
tauri-plugin-opener = { path = "../../../plugins/opener", version = "1.0.0" }
3637
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.2" }
3738
tauri-plugin-store = { path = "../../../plugins/store", version = "2.1.0" }
3839

0 commit comments

Comments
 (0)