The v1.7.2 global link interceptor routed external URLs through `@tauri-apps/plugin-shell`'s `open()`, but that throws on Android: "Scoped shell IO error: No such file or directory (os error 2)" — the shell plugin has no native URL handler on mobile, so every tapped link did nothing. (The earlier ConsentGate per-link shell.open from #98 had the same flaw; it was simply never tap-tested on Android.) Switch to `@tauri-apps/plugin-opener`'s `openUrl()`, whose `open_url` has a real cfg(mobile) split that routes to the native Intent.ACTION_VIEW handler. Plain `openUrl(url)` — no inAppBrowser (that option regressed os-error-2 on Android 16, plugins-workspace#2913). Wiring: tauri-plugin-opener crate + init, @tauri-apps/plugin-opener npm, "opener:default" capability (its allow-open-url permits any URL). Shell plugin removed entirely (openExternal was its only consumer) — also from vite optimizeDeps, knip ignore, and the THIRD-PARTY/TAURI-NOTES docs. Verified on emulator API 33 (Android 13, WebView Chromium 109): tapping the consent-gate License link and footer X link both fire ActivityManager START ACTION_VIEW and open Chrome; no shell error. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
761 B
JSON
30 lines
761 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Default permissions for the JSONPrism main window.",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"core:event:allow-listen",
|
|
"core:event:allow-unlisten",
|
|
"core:webview:default",
|
|
"core:window:default",
|
|
"core:window:allow-set-title",
|
|
"opener:default",
|
|
"os:default",
|
|
"dialog:default",
|
|
"dialog:allow-open",
|
|
"dialog:allow-save",
|
|
"dialog:allow-message",
|
|
"fs:default",
|
|
"fs:allow-read-text-file",
|
|
"fs:allow-write-text-file",
|
|
"fs:allow-write-file",
|
|
"fs:allow-stat",
|
|
{
|
|
"identifier": "fs:scope",
|
|
"allow": ["$HOME/**", "$DOCUMENT/**", "$DOWNLOAD/**", "$DESKTOP/**"]
|
|
}
|
|
]
|
|
}
|