fs: Forbidden path on readFile
on app restart
#12091
-
Hii Now, if I use the path as it is and try to read it using However, once I close the app and re-run it, I get {
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": ["main"],
"permissions": [
"core:default",
"dialog:default",
{
"identifier": "fs:allow-read-file",
"allow": [{ "path": "*" }]
}
]
} Can someone help me understand what I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you also share the output of the the Also, while we of course don't recommend it, try |
Beta Was this translation helpful? Give feedback.
Thanks, I think I found out why I'm getting this error.
I tried a fresh Tauri app and installed, dialog, fs and scope plugins there. There it worked fine 🫠.
So I tried to debug what's happening in my original app.
tauri info
showed that the plugins in original app were stuck at2.0
but the fresh app used2.2
variants.npx npm-check-updates -u
andcargo update
).Please make sure to register the
fsplugin before the
persisted-scopeplugin!
.src-tauri/src/lib.rs
in both fresh and original apps.