tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[docs] There is a problem with Window Customization mentioned in the v2 document

Open blankTwo opened this issue 1 year ago • 1 comments

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 image

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

image

blankTwo avatar Oct 11 '24 17:10 blankTwo

could you share the output of the tauri info command please? the docs don't look wrong to me i think

FabianLars avatar Oct 14 '24 14:10 FabianLars

你需要把功能都写上才会有效

{
    "$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"
    ]
}

a121bc avatar Oct 22 '24 08:10 a121bc

I have encountered the same problem and have not corrected it, or is it a BUG? I'm so impressed.

3517277 avatar Nov 09 '24 19:11 3517277