Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] V2:"Promise Rejection: shell.open not allowed" #9815

Closed
lencx opened this issue May 18, 2024 · 0 comments
Closed

[bug] V2:"Promise Rejection: shell.open not allowed" #9815

lencx opened this issue May 18, 2024 · 0 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@lencx
Copy link

lencx commented May 18, 2024

Describe the bug

Configured permissions but unable to open links in Webview (tauri::WebviewBuilder).

Screenshot 2024-05-19 at 07 39 06
{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "desktop-capability",
  "windows": ["*"],
  "platforms": ["linux", "macOS", "windows"],
  "permissions": [
    "webview:default",
    "webview:allow-internal-toggle-devtools",
    "webview:allow-set-webview-zoom",
    "window:default",
    "window:allow-create",
    "webview:allow-create-webview",
    "webview:allow-create-webview-window",
    "window:allow-start-dragging",
    "event:allow-emit",
    "event:allow-listen",
    "event:allow-unlisten",
    "shell:default",
    "shell:allow-execute",
    "shell:allow-open"
  ]
}

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.77.1 (7cf61ebde 2024-03-27)
    ✔ cargo: 1.77.1 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.17.0
    - pnpm: 9.0.6
    - yarn: 1.22.19
    - npm: 9.6.7
    - bun: 1.0.36

[-] Packages
    - tauri [RUST]: 2.0.0-beta.18
    - tauri-build [RUST]: 2.0.0-beta.14
    - wry [RUST]: 0.39.4
    - tao [RUST]: 0.27.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.11
    - @tauri-apps/cli [NPM]: 2.0.0-beta.15

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

@lencx lencx added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 18, 2024
@lencx lencx closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

1 participant