diff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.json index b5f74603f4..e1695695de 100644 --- a/apps/desktop/src-tauri/capabilities/default.json +++ b/apps/desktop/src-tauri/capabilities/default.json @@ -52,9 +52,32 @@ { "identifier": "fs:allow-mkdir", "allow": [ + { + "path": "$DATA/hyprnote" + }, + { + "path": "$DATA/hyprnote/**/*" + }, + { + "path": "$APPDATA" + }, + { + "path": "$APPDATA/**/*" + } + ] + }, + { + "identifier": "fs:allow-read-dir", + "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" } @@ -66,9 +89,15 @@ { "path": "/Applications/*" }, + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" } @@ -77,9 +106,15 @@ { "identifier": "fs:allow-read-file", "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" } @@ -88,9 +123,15 @@ { "identifier": "fs:allow-read-text-file", "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" } @@ -99,9 +140,15 @@ { "identifier": "fs:allow-write-text-file", "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" }, @@ -113,9 +160,15 @@ { "identifier": "fs:allow-write-file", "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" }, @@ -127,9 +180,15 @@ { "identifier": "fs:allow-remove", "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" } @@ -138,9 +197,15 @@ { "identifier": "fs:allow-rename", "allow": [ + { + "path": "$DATA/hyprnote" + }, { "path": "$DATA/hyprnote/**/*" }, + { + "path": "$APPDATA" + }, { "path": "$APPDATA/**/*" } @@ -171,8 +236,8 @@ "listener2:default", "template:default", "notification:default", - "notify:default", "overlay:default", + "notify:default", "pagefind:default", "shell:allow-open", { diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs index 875570c743..01c83879d3 100644 --- a/apps/desktop/src-tauri/src/lib.rs +++ b/apps/desktop/src-tauri/src/lib.rs @@ -113,6 +113,7 @@ pub async fn main() { .plugin(tauri_plugin_tray::init()) .plugin(tauri_plugin_store::Builder::default().build()) .plugin(tauri_plugin_store2::init()) + .plugin(tauri_plugin_notify::init()) .plugin(tauri_plugin_settings::init()) .plugin(tauri_plugin_sfx::init()) .plugin(tauri_plugin_windows::init()) diff --git a/plugins/notify/permissions/autogenerated/reference.md b/plugins/notify/permissions/autogenerated/reference.md index 03d99969bd..d46c5d93a1 100644 --- a/plugins/notify/permissions/autogenerated/reference.md +++ b/plugins/notify/permissions/autogenerated/reference.md @@ -1,3 +1,12 @@ +## Default Permission + +Default permissions for the plugin + +#### This default permission set includes the following: + +- `allow-start` +- `allow-stop` + ## Permission Table