tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.76k stars 2.45k forks source link

[bug] `core:default` is not included in schema #10733

Closed oluijks closed 2 hours ago

oluijks commented 3 weeks ago

Describe the bug

Editor complaints about permissions value not accepted

/src-tauri/capabilities/default.json

{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "default",
  "description": "Capability for the main window",
  "windows": ["main"],
  "permissions": [
    **"core:default", <!-- THIS SHOULD BE core:app:default? -->**
    "shell:allow-open"
  ]
}

Reproduction

cargo create-tauri-app --rc

Expected behavior

No response

Full tauri info output

> cargo tauri info

[✔] Environment
    - OS: Arch Linux Unknown X64
    ✔ webkit2gtk-4.1: 2.44.3
    ✔ rsvg2: 2.58.3
    ✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
    ✔ cargo: 1.80.1 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.16.0
    - pnpm: 9.7.1
    - npm: 10.8.1
    - bun: 1.1.22

[-] Packages
    - tauri [RUST]: 2.0.0-rc.5
    - tauri-build [RUST]: 2.0.0-rc.5
    - wry [RUST]: 0.42.0
    - tao [RUST]: 0.29.1
    - tauri-cli [RUST]: 2.0.0-rc.6
    - @tauri-apps/api [NPM]: 2.0.0-rc.2
    - @tauri-apps/cli [NPM]: 2.0.0-rc.6

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


### Stack trace

_No response_

### Additional context

_No response_
amrbashir commented 3 weeks ago

core:default is the correct one, the schema is just wrong, will open a PR to fix it

FabianLars commented 1 week ago

@amrbashir Just to double check, did you open a PR but forgot to link this issue?

amrbashir commented 1 week ago

not yet, I am not too happy with how core:default is implemented atm and might need a bit of refactoring, but feel free to open a workaround PR if you have one

FabianLars commented 1 week ago

okok, nope i don't have anything, just working through the tons of notifications that piled up 😅