From fb106dd55514bdb8fc1f3da8ecb93769437154ad Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 10 Mar 2025 21:01:26 +0100 Subject: [PATCH] fix: enhance file system capabilities by adding write text file permission and scope configuration --- src-tauri/capabilities/default.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 1ec766669..a5eaf2876 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -49,6 +49,11 @@ "fs:allow-write-file", "fs:read-all", "fs:allow-data-read", - "fs:allow-data-read-recursive" + "fs:allow-data-read-recursive", + "fs:allow-write-text-file", + { + "identifier": "fs:scope", + "allow": ["$APPDATA/**", "$RESOURCE/../**", "**"] + } ] }