mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
The db-version-too-new recovery screen and the config-load-failure path both call exit() from @tauri-apps/plugin-process, but the default capability only granted process:allow-restart. The IPC call was denied and silently swallowed by void/await, leaving the app impossible to quit from those screens.
23 lines
607 B
JSON
23 lines
607 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "enables the default permissions",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"opener:default",
|
|
"updater:default",
|
|
"log:default",
|
|
"core:window:allow-set-skip-taskbar",
|
|
"core:window:allow-start-dragging",
|
|
"core:window:allow-minimize",
|
|
"core:window:allow-toggle-maximize",
|
|
"core:window:allow-is-maximized",
|
|
"core:window:allow-close",
|
|
"core:window:allow-set-decorations",
|
|
"process:allow-exit",
|
|
"process:allow-restart",
|
|
"dialog:default"
|
|
]
|
|
}
|