tauri
tauri copied to clipboard
[bug] `core:default` is not included in schema
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_
core:default is the correct one, the schema is just wrong, will open a PR to fix it
@amrbashir Just to double check, did you open a PR but forgot to link this issue?
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
okok, nope i don't have anything, just working through the tons of notifications that piled up 😅