From 6ad9466b966045b0cb3d79249cb7cfd20d35d8e4 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Sun, 5 Jan 2025 14:23:09 -0500 Subject: [PATCH] Allow Lightningbeam to read/write files outside of Documents folder --- src-tauri/capabilities/default.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 973db24..e2aed5b 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -14,24 +14,51 @@ { "identifier": "fs:allow-exists", "allow": [ + { + "path": "$HOME/*" + }, { "path": "$DOCUMENT/*" + }, + { + "path": "$DOWNLOAD/*" + }, + { + "path": "$DESKTOP/*" } ] }, { "identifier": "fs:allow-app-write-recursive", "allow": [ + { + "path": "$HOME/*" + }, { "path": "$DOCUMENT/*" + }, + { + "path": "$DOWNLOAD/*" + }, + { + "path": "$DESKTOP/*" } ] }, { "identifier": "fs:allow-app-read-recursive", "allow": [ + { + "path": "$HOME/*" + }, { "path": "$DOCUMENT/*" + }, + { + "path": "$DOWNLOAD/*" + }, + { + "path": "$DESKTOP/*" } ] },