Hi guys,
I migrated from V1 to V2 recently and in general i'm a bit confused with the new capabilities object and permissions in general.
I would like to watch my 'Desktop' folder example with the 'watchImmediate' function, but I receive this error in the console.
My main.json in the capabilities looks like this.
{
"identifier": "main-capability",
"description": "Capability for the main window",
"windows": [
"main"
],
"permissions": [
{
"identifier": "fs:allow-watch",
"allow": [{ "path": "DESKTOP/**" }]
},
{
"identifier": "fs:allow-read-dir",
"allow": [{ "path": "$HOME/**" }]
},
"path:default",
"event:default",
"dialog:allow-open",
"window:default",
"app:default",
"resources:default",
"menu:default",
"tray:default",
"window:allow-set-title"
]
}
and my tauri.conf.json looks like this
{
"app": {
"windows": [
{
"title": "invoicemate2",
"width": 800,
"height": 600
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
},
"plugins": {
"fs": {
"scope": [
"$DESKTOP/**",
"$HOME/**"
]
}
}
}
In my React app I try to start watching the desktop folder, but I receive the error above. (see title)..
Thanks in advance.