tauri
tauri copied to clipboard
[docs] There is a problem with Window Customization mentioned in the v2 document
Document link: https://v2.tauri.app/plugin/window-customization/
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "main-capability",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": ["core:window:default", "core:window:allow-start-dragging"]
}
Adding permissions has no effect
Including core:window:allow-minimize, etc., all have the same problem.
The configuration in tauri.conf.json is as follows: It will take effect. I don't quite understand
could you share the output of the tauri info command please? the docs don't look wrong to me i think
你需要把功能都写上才会有效
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "main-capability",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:default",
"shell:allow-open",
"core:window:default",
"core:window:allow-close",
"core:window:allow-minimize",
"core:window:allow-start-dragging",
"core:window:allow-toggle-maximize",
"core:window:allow-internal-toggle-maximize"
]
}
I have encountered the same problem and have not corrected it, or is it a BUG? I'm so impressed.