Add Tauri v2 capabilities for event.listen and shell permissions
Without a capabilities file, Tauri v2 denies event.listen by default, causing the WebSocket hook to fail and preventing data loading.
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
|
"identifier": "default",
|
||||||
|
"description": "Default capabilities for ProxmoxDesktop",
|
||||||
|
"windows": ["main"],
|
||||||
|
"permissions": [
|
||||||
|
"core:default",
|
||||||
|
"core:event:default",
|
||||||
|
"core:event:allow-listen",
|
||||||
|
"core:event:allow-emit",
|
||||||
|
"core:event:allow-emit-to",
|
||||||
|
"core:window:default",
|
||||||
|
"core:window:allow-show",
|
||||||
|
"core:window:allow-hide",
|
||||||
|
"core:window:allow-close",
|
||||||
|
"core:window:allow-set-focus",
|
||||||
|
"core:window:allow-is-visible",
|
||||||
|
"shell:allow-execute",
|
||||||
|
"shell:default"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user