Files
OwnCord/Client/tauri-client/src-tauri/capabilities/default.json
T
Claude 1201992ab0 fix(client): skip window-state save while minimized
A minimized window reports placeholder coordinates (-32000 on Windows); the
move event fired by minimize was persisting them, so quitting while
minimized silently discarded the remembered position (the new off-screen
validation then falls back to centered). Skip the save while minimized so
the last real geometry survives.

Follow-up to #124.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwtnpHAoSFr1ZibQgQkNQK
2026-07-19 11:20:00 +00:00

133 lines
2.6 KiB
JSON

{
"identifier": "default",
"description": "Default capability granting core permissions to the main window",
"windows": [
"main"
],
"permissions": [
"core:default",
"core:event:default",
"core:window:default",
"core:window:allow-show",
"core:window:allow-hide",
"core:window:allow-set-focus",
"core:window:allow-is-visible",
"core:window:allow-set-position",
"core:window:allow-set-size",
"core:window:allow-maximize",
"core:window:allow-is-maximized",
"core:window:allow-is-minimized",
"core:window:allow-outer-position",
"core:window:allow-outer-size",
"core:window:allow-available-monitors",
"store:default",
"global-shortcut:default",
"global-shortcut:allow-register",
"global-shortcut:allow-unregister",
"global-shortcut:allow-unregister-all",
"global-shortcut:allow-is-registered",
"notification:default",
"notification:allow-notify",
"notification:allow-request-permission",
"notification:allow-is-permission-granted",
{
"identifier": "http:allow-fetch",
"allow": [
{
"url": "https://*:*"
},
{
"url": "https://*"
}
]
},
{
"identifier": "http:allow-fetch-send",
"allow": [
{
"url": "https://*:*"
},
{
"url": "https://*"
}
]
},
{
"identifier": "http:allow-fetch-read-body",
"allow": [
{
"url": "https://*:*"
},
{
"url": "https://*"
}
]
},
"http:allow-fetch-cancel",
"opener:default",
"dialog:default",
"updater:default",
"process:allow-restart",
"fs:default",
{
"identifier": "fs:allow-write-file",
"allow": [
{
"path": "$APPDATA/**"
},
{
"path": "$APPLOG/**"
}
]
},
{
"identifier": "fs:allow-write-text-file",
"allow": [
{
"path": "$APPLOG/**"
}
]
},
{
"identifier": "fs:allow-mkdir",
"allow": [
{
"path": "$APPLOG/**"
}
]
},
{
"identifier": "fs:allow-exists",
"allow": [
{
"path": "$APPLOG/**"
}
]
},
{
"identifier": "fs:allow-read-dir",
"allow": [
{
"path": "$APPLOG/**"
}
]
},
{
"identifier": "fs:allow-remove",
"allow": [
{
"path": "$APPLOG/**"
}
]
},
{
"identifier": "fs:allow-read-text-file",
"allow": [
{
"path": "$APPLOG/**"
}
]
}
]
}