From fa63e823a4b96a8afe99f413b952e483e71ab7bf Mon Sep 17 00:00:00 2001 From: Martichou Date: Fri, 9 Aug 2024 19:57:44 +0200 Subject: [PATCH] fix: attempt to use tauri's shell open Signed-off-by: Martichou --- app/legacy/src-tauri/Cargo.lock | 1 - app/legacy/src-tauri/Cargo.toml | 1 - app/legacy/src-tauri/src/cmds/mod.rs | 2 - app/legacy/src-tauri/src/cmds/open_url.rs | 17 - app/legacy/src-tauri/src/main.rs | 1 - app/legacy/src-tauri/tauri.conf.json | 5 +- app/legacy/src/components/HomePage.vue | 3 +- app/main/package.json | 3 +- app/main/pnpm-lock.yaml | 10 + app/main/src-tauri/Cargo.lock | 214 +-- app/main/src-tauri/Cargo.toml | 1 - .../src-tauri/gen/schemas/linux-schema.json | 1442 +++++++++-------- app/main/src-tauri/src/cmds/mod.rs | 2 - app/main/src-tauri/src/cmds/open_url.rs | 17 - app/main/src-tauri/src/main.rs | 1 - app/main/src-tauri/tauri.conf.json | 6 +- app/main/src/components/HomePage.vue | 9 +- 17 files changed, 867 insertions(+), 868 deletions(-) delete mode 100644 app/legacy/src-tauri/src/cmds/open_url.rs delete mode 100644 app/main/src-tauri/src/cmds/open_url.rs diff --git a/app/legacy/src-tauri/Cargo.lock b/app/legacy/src-tauri/Cargo.lock index ea00454..a505dac 100644 --- a/app/legacy/src-tauri/Cargo.lock +++ b/app/legacy/src-tauri/Cargo.lock @@ -4161,7 +4161,6 @@ dependencies = [ "humantime", "log", "notify-rust", - "open 5.3.0", "rqs_lib", "serde", "serde_json", diff --git a/app/legacy/src-tauri/Cargo.toml b/app/legacy/src-tauri/Cargo.toml index f105611..0078de7 100644 --- a/app/legacy/src-tauri/Cargo.toml +++ b/app/legacy/src-tauri/Cargo.toml @@ -17,7 +17,6 @@ fern = { version = "0.6", features = ["colored"] } humantime = "2.1" log = "0.4" notify-rust = "4.10" -open = "5.0" rqs_lib = { path = "../../../core_lib", features = ["experimental"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/app/legacy/src-tauri/src/cmds/mod.rs b/app/legacy/src-tauri/src/cmds/mod.rs index 0e21df6..10be5b5 100644 --- a/app/legacy/src-tauri/src/cmds/mod.rs +++ b/app/legacy/src-tauri/src/cmds/mod.rs @@ -6,8 +6,6 @@ mod discovery; pub use discovery::*; mod get_hostname; pub use get_hostname::*; -mod open_url; -pub use open_url::*; mod send_payload; pub use send_payload::*; mod send_to_rs; diff --git a/app/legacy/src-tauri/src/cmds/open_url.rs b/app/legacy/src-tauri/src/cmds/open_url.rs deleted file mode 100644 index 97a0fa9..0000000 --- a/app/legacy/src-tauri/src/cmds/open_url.rs +++ /dev/null @@ -1,17 +0,0 @@ -#[tauri::command] -pub fn open_url(message: String) -> Result<(), String> { - info!("open_url: {:?}", &message); - - match open::that_detached(message) { - Ok(_) => { - trace!("open_url: success"); - - Ok(()) - } - Err(e) => { - error!("open_url error: {}", e); - - Err(format!("Coudln't open: {}", e)) - } - } -} diff --git a/app/legacy/src-tauri/src/main.rs b/app/legacy/src-tauri/src/main.rs index 40bce09..6199764 100644 --- a/app/legacy/src-tauri/src/main.rs +++ b/app/legacy/src-tauri/src/main.rs @@ -71,7 +71,6 @@ async fn main() -> Result<(), anyhow::Error> { cmds::start_discovery, cmds::stop_discovery, cmds::get_hostname, - cmds::open_url, cmds::send_payload, cmds::send_to_rs, ]) diff --git a/app/legacy/src-tauri/tauri.conf.json b/app/legacy/src-tauri/tauri.conf.json index dbd61f0..fbb17d4 100644 --- a/app/legacy/src-tauri/tauri.conf.json +++ b/app/legacy/src-tauri/tauri.conf.json @@ -50,7 +50,10 @@ "active": false }, "allowlist": { - "all": true + "all": true, + "shell": { + "open": ".*" + } }, "windows": [ { diff --git a/app/legacy/src/components/HomePage.vue b/app/legacy/src/components/HomePage.vue index 09d3003..8d9465d 100644 --- a/app/legacy/src/components/HomePage.vue +++ b/app/legacy/src/components/HomePage.vue @@ -353,6 +353,7 @@ import { ref, nextTick } from 'vue' import { UnlistenFn, listen } from '@tauri-apps/api/event' import { Store } from 'tauri-plugin-store-api'; import { invoke } from '@tauri-apps/api/tauri' +import { open } from '@tauri-apps/api/shell'; import { getVersion } from '@tauri-apps/api/app'; import { isPermissionGranted, requestPermission } from '@tauri-apps/api/notification'; import { getCurrent } from '@tauri-apps/api/window'; @@ -587,7 +588,7 @@ export default { }, openUrl: async function(url: string) { try { - await invoke('open_url', { message: url }); + await open(url); } catch (e) { this.toastStore.addToast("Error opening URL, it may not be a valid URI", ToastType.Error); console.error("Error opening URL", e); diff --git a/app/main/package.json b/app/main/package.json index 7edc967..c5dd735 100644 --- a/app/main/package.json +++ b/app/main/package.json @@ -23,7 +23,8 @@ "@tauri-apps/plugin-dialog": "2.0.0-rc.0", "@tauri-apps/plugin-notification": "2.0.0-rc.0", "@tauri-apps/plugin-store": "2.0.0-rc.0", - "pinia": "^2.2.1", + "@tauri-apps/plugin-shell": "2.0.0-rc.0", + "pinia": "^2.2.0", "semver": "^7.6.3", "vue": "3.4.37" }, diff --git a/app/main/pnpm-lock.yaml b/app/main/pnpm-lock.yaml index 8b0337b..81ba7a0 100644 --- a/app/main/pnpm-lock.yaml +++ b/app/main/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: '@tauri-apps/plugin-notification': specifier: 2.0.0-rc.0 version: 2.0.0-rc.0 + '@tauri-apps/plugin-shell': + specifier: 2.0.0-rc.0 + version: 2.0.0-rc.0 '@tauri-apps/plugin-store': specifier: 2.0.0-rc.0 version: 2.0.0-rc.0 @@ -581,6 +584,9 @@ packages: '@tauri-apps/plugin-notification@2.0.0-rc.0': resolution: {integrity: sha512-0qsT/kvxQ6Ky4g6eQ4SUiHXzM4szTVc6thjz9vnGPYaApLoZrCJ9GdG+vEqeB+cT2dvE+wmxUFETh3ZXYVw8UA==} + '@tauri-apps/plugin-shell@2.0.0-rc.0': + resolution: {integrity: sha512-bhUcQcrqZoK8H1DFXapr5r1Z75oh6Kd5Tltz97XpZFLREEqp+KhN2Fvyh8r/fKAyenYsTYUIsDsyGdjdueuF9g==} + '@tauri-apps/plugin-store@2.0.0-rc.0': resolution: {integrity: sha512-KqiEzq6EdRwxrl0/FwyNLwumDBM91xTchdu2a8vfkNub30GuP9z7RskP9ifVRI1gbxfa5TUDi0hKFk/SP7TANQ==} @@ -2736,6 +2742,10 @@ snapshots: dependencies: '@tauri-apps/api': 2.0.0-rc.0 + '@tauri-apps/plugin-shell@2.0.0-rc.0': + dependencies: + '@tauri-apps/api': 2.0.0-rc.0 + '@tauri-apps/plugin-store@2.0.0-rc.0': dependencies: '@tauri-apps/api': 2.0.0-rc.0 diff --git a/app/main/src-tauri/Cargo.lock b/app/main/src-tauri/Cargo.lock index 1f9adbf..fa7fd30 100644 --- a/app/main/src-tauri/Cargo.lock +++ b/app/main/src-tauri/Cargo.lock @@ -165,9 +165,9 @@ dependencies = [ [[package]] name = "async-io" -version = "2.3.3" +version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964" +checksum = "444b0228950ee6501b3568d3c93bf1176a1fdbc3b758dcd9475046d30f4dc7e8" dependencies = [ "async-lock", "cfg-if", @@ -175,11 +175,11 @@ dependencies = [ "futures-io", "futures-lite", "parking", - "polling 3.7.2", + "polling 3.7.3", "rustix", "slab", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -195,9 +195,9 @@ dependencies = [ [[package]] name = "async-process" -version = "2.2.3" +version = "2.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7eda79bbd84e29c2b308d1dc099d7de8dcc7035e48f4bf5dc4a531a44ff5e2a" +checksum = "a8a07789659a4d385b79b18b9127fc27e1a59e1e89117c78c5ea3b806f016374" dependencies = [ "async-channel", "async-io", @@ -210,7 +210,7 @@ dependencies = [ "futures-lite", "rustix", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -221,14 +221,14 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] name = "async-signal" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb3634b73397aa844481f814fad23bbf07fdb0eabec10f2eb95e58944b1ec32" +checksum = "637e00349800c0bdf8bfc21ebbc0b6524abea702b0da4168ac00d070d0c0b9f3" dependencies = [ "async-io", "async-lock", @@ -239,7 +239,7 @@ dependencies = [ "rustix", "signal-hook-registry", "slab", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -256,7 +256,7 @@ checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -611,9 +611,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.7" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc" +checksum = "e9e8aabfac534be767c909e0690571677d49f41bd8465ae876fe043d52ba5292" [[package]] name = "cesu8" @@ -768,9 +768,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core-graphics" @@ -875,7 +875,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -885,7 +885,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" dependencies = [ "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -907,7 +907,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", "synstructure", ] @@ -932,7 +932,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -943,7 +943,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1034,7 +1034,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1134,7 +1134,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1157,7 +1157,7 @@ checksum = "f2b99bf03862d7f545ebc28ddd33a665b50865f4dfd84031a393823879bd4c54" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1186,9 +1186,9 @@ dependencies = [ [[package]] name = "dunce" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "dyn-clone" @@ -1281,7 +1281,7 @@ checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1442,7 +1442,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1545,7 +1545,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1842,7 +1842,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -1932,7 +1932,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -2096,9 +2096,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" +checksum = "cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9" dependencies = [ "bytes", "futures-channel", @@ -2303,6 +2303,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "0.4.8" @@ -2848,7 +2857,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -3031,9 +3040,9 @@ dependencies = [ [[package]] name = "object" -version = "0.36.2" +version = "0.36.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e" +checksum = "27b64972346851a39438c60b341ebc01bba47464ae329e55cf343eb93964efd9" dependencies = [ "memchr", ] @@ -3078,7 +3087,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -3332,7 +3341,7 @@ dependencies = [ "phf_shared 0.11.2", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -3379,7 +3388,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -3396,9 +3405,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "piper" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391" +checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" dependencies = [ "atomic-waker", "fastrand", @@ -3465,9 +3474,9 @@ dependencies = [ [[package]] name = "polling" -version = "3.7.2" +version = "3.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b" +checksum = "cc2790cd301dec6cd3b7a025e4815cf825724a51c98dccfe6a3e55f05ffb6511" dependencies = [ "cfg-if", "concurrent-queue", @@ -3475,7 +3484,7 @@ dependencies = [ "pin-project-lite", "rustix", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3506,7 +3515,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" dependencies = [ "proc-macro2", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -3595,7 +3604,7 @@ checksum = "5bb182580f71dd070f88d01ce3de9f4da5021db7115d2e1c3605a754153b77c1" dependencies = [ "bytes", "heck 0.5.0", - "itertools 0.12.1", + "itertools 0.13.0", "log", "multimap", "once_cell", @@ -3604,7 +3613,7 @@ dependencies = [ "prost", "prost-types", "regex", - "syn 2.0.72", + "syn 2.0.74", "tempfile", ] @@ -3615,10 +3624,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "18bec9b0adc4eba778b33684b7ba3e7137789434769ee3ce3930463ef904cfca" dependencies = [ "anyhow", - "itertools 0.12.1", + "itertools 0.13.0", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -3936,7 +3945,6 @@ dependencies = [ "humantime", "log", "notify-rust", - "open", "rqs_lib", "serde", "serde_json", @@ -3994,9 +4002,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" +checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0" [[package]] name = "rustversion" @@ -4051,7 +4059,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4134,9 +4142,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.204" +version = "1.0.206" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" +checksum = "5b3e4cd94123dd520a128bcd11e34d9e9e423e7e3e50425cb1b4b1e3549d0284" dependencies = [ "serde_derive", ] @@ -4166,13 +4174,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.204" +version = "1.0.206" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" +checksum = "fabfb6138d2383ea8208cf98ccf69cdfb1aff4088460681d84189aa259762f97" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4183,7 +4191,7 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4206,7 +4214,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4257,7 +4265,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4529,7 +4537,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4562,9 +4570,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.72" +version = "2.0.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" +checksum = "1fceb41e3d546d0bd83421d3409b1460cc7444cd389341a4c880fe7a042cb3d7" dependencies = [ "proc-macro2", "quote", @@ -4585,7 +4593,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -4674,9 +4682,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tauri" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "255e746089a370802ec4eb896dccc6f27c1dd2a203c1dc484fd996db954e2300" +checksum = "19ee93e545e49458813d4ed16179c67ee6141dba140ec3d4f078dda3b8d4e0d1" dependencies = [ "anyhow", "bytes", @@ -4724,9 +4732,9 @@ dependencies = [ [[package]] name = "tauri-build" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85ceb8d082c3b17b4b2eb134a39363a22c696ddba473d6e5c0ab1caadad4cfca" +checksum = "96a58b3a716b51d7f671f729bb8c0a53cd2551eec8450c64e828ef4e6c9f948e" dependencies = [ "anyhow", "cargo_toml", @@ -4746,9 +4754,9 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2407c7d37a491b16e530445c9611d91091cae198eea2ed424913b740215605f2" +checksum = "90a9e63ecd827d57228864764e0234935c9aac230099cf145197c8c08e754ced" dependencies = [ "base64 0.22.1", "brotli", @@ -4762,7 +4770,7 @@ dependencies = [ "serde", "serde_json", "sha2", - "syn 2.0.72", + "syn 2.0.74", "tauri-utils", "thiserror", "time", @@ -4773,23 +4781,23 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d210893b693be00f569b4f54456803debe104b7675f368205f2b6e94bac09b34" +checksum = "a54f5d5b289aa6215ffcfed7d4ff9960a04b7a854436d04519a9fcf911050cba" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", "tauri-codegen", "tauri-utils", ] [[package]] name = "tauri-plugin" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b352e4478af27bd7c76724bb426ebb32fc51baafb2186afabed4e706dc9e39d4" +checksum = "03ce2ac5e182251ff932750d69c9b240a78e44901a7a6234814d63c595b43660" dependencies = [ "anyhow", "glob", @@ -4915,9 +4923,9 @@ dependencies = [ [[package]] name = "tauri-runtime" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6624fdf383ccafc9e8ad9205fe6e5c976b318efcd6b3662dde658c74e4254792" +checksum = "8f01b129b1ebdf09563c354760dbe7c0e96a166b4e33362d9c8d207f527c7ea5" dependencies = [ "dpi", "gtk", @@ -4934,9 +4942,9 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fd1a785c4281f8231b091593393b40cb3a800810c407b1ffed52de27ff1640a" +checksum = "fcda27639094ace2bf25f00bc10e35ea4e3af2f92753b1bdd2a174d1fa5a6292" dependencies = [ "cocoa", "gtk", @@ -4958,9 +4966,9 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "2.0.0-rc.0" +version = "2.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f435eeaae1e69cf93cf19da0f727989eed2e5eb6fc63a8d21432f59dd3ac4ac" +checksum = "28bb83cffa26e9cb7a2b3d0c31ab87bf277f44aaaa90f17159aef4d37aabd051" dependencies = [ "brotli", "cargo_metadata", @@ -5014,15 +5022,15 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.11.0" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fcd239983515c23a32fb82099f97d0b11b8c72f654ed659363a95c3dad7a53" +checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if", "fastrand", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -5068,7 +5076,7 @@ checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5164,7 +5172,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5309,7 +5317,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5397,7 +5405,7 @@ checksum = "c88cc88fd23b5a04528f3a8436024f20010a16ec18eb23c164b1242f65860130" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", "termcolor", ] @@ -5638,7 +5646,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", "wasm-bindgen-shared", ] @@ -5672,7 +5680,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -5772,7 +5780,7 @@ checksum = "ac1345798ecd8122468840bcdf1b95e5dc6d2206c5e4b0eafa078d061f59c9bc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5922,7 +5930,7 @@ checksum = "f6fc35f58ecd95a9b71c4f2329b911016e6bec66b3f2e6a4aad86bd2e99e2f9b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5933,7 +5941,7 @@ checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5944,7 +5952,7 @@ checksum = "08990546bf4edef8f431fa6326e032865f27138718c587dc21bc0265bbcb57cc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -5955,7 +5963,7 @@ checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] @@ -6300,19 +6308,19 @@ checksum = "ec107c4503ea0b4a98ef47356329af139c0a4f7750e621cf2973cd3385ebcb3d" [[package]] name = "xdg-home" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca91dcf8f93db085f3a0a29358cd0b9d670915468f4290e8b85d118a34211ab8" +checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "xml-rs" -version = "0.8.20" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791978798f0597cfc70478424c2b4fdc2b7a8024aaff78497ef00f24ef674193" +checksum = "539a77ee7c0de333dcc6da69b177380a0b81e0dacfa4f7344c465a36871ee601" [[package]] name = "zbus" @@ -6397,7 +6405,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.74", ] [[package]] diff --git a/app/main/src-tauri/Cargo.toml b/app/main/src-tauri/Cargo.toml index d94a225..97bc77c 100644 --- a/app/main/src-tauri/Cargo.toml +++ b/app/main/src-tauri/Cargo.toml @@ -17,7 +17,6 @@ fern = { version = "0.6", features = ["colored"] } humantime = "2.1" log = "0.4" notify-rust = "4.10" -open = "5.0" rqs_lib = { path = "../../../core_lib", features = ["experimental"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/app/main/src-tauri/gen/schemas/linux-schema.json b/app/main/src-tauri/gen/schemas/linux-schema.json index 3665122..da40558 100644 --- a/app/main/src-tauri/gen/schemas/linux-schema.json +++ b/app/main/src-tauri/gen/schemas/linux-schema.json @@ -37,7 +37,7 @@ ], "definitions": { "Capability": { - "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"path:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, \"platforms\": [\"macOS\",\"windows\"] } ```", + "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, \"platforms\": [\"macOS\",\"windows\"] } ```", "type": "object", "required": [ "identifier", @@ -84,7 +84,7 @@ } }, "permissions": { - "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"path:default\", \"event:default\", \"window:default\", \"app:default\", \"image:default\", \"resources:default\", \"menu:default\", \"tray:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ```", + "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ```", "type": "array", "items": { "$ref": "#/definitions/PermissionEntry" @@ -172,2495 +172,2509 @@ "Identifier": { "oneOf": [ { - "description": "app:default -> Default permissions for the plugin.", + "description": "autostart:default -> This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n", "type": "string", "enum": [ - "app:default" + "autostart:default" ] }, { - "description": "app:allow-app-hide -> Enables the app_hide command without any pre-configured scope.", + "description": "autostart:allow-disable -> Enables the disable command without any pre-configured scope.", "type": "string", "enum": [ - "app:allow-app-hide" + "autostart:allow-disable" ] }, { - "description": "app:allow-app-show -> Enables the app_show command without any pre-configured scope.", + "description": "autostart:allow-enable -> Enables the enable command without any pre-configured scope.", "type": "string", "enum": [ - "app:allow-app-show" + "autostart:allow-enable" ] }, { - "description": "app:allow-default-window-icon -> Enables the default_window_icon command without any pre-configured scope.", + "description": "autostart:allow-is-enabled -> Enables the is_enabled command without any pre-configured scope.", "type": "string", "enum": [ - "app:allow-default-window-icon" + "autostart:allow-is-enabled" ] }, { - "description": "app:allow-name -> Enables the name command without any pre-configured scope.", + "description": "autostart:deny-disable -> Denies the disable command without any pre-configured scope.", "type": "string", "enum": [ - "app:allow-name" + "autostart:deny-disable" ] }, { - "description": "app:allow-tauri-version -> Enables the tauri_version command without any pre-configured scope.", + "description": "autostart:deny-enable -> Denies the enable command without any pre-configured scope.", "type": "string", "enum": [ - "app:allow-tauri-version" + "autostart:deny-enable" ] }, { - "description": "app:allow-version -> Enables the version command without any pre-configured scope.", + "description": "autostart:deny-is-enabled -> Denies the is_enabled command without any pre-configured scope.", "type": "string", "enum": [ - "app:allow-version" + "autostart:deny-is-enabled" ] }, { - "description": "app:deny-app-hide -> Denies the app_hide command without any pre-configured scope.", + "description": "core:app:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "app:deny-app-hide" + "core:app:default" ] }, { - "description": "app:deny-app-show -> Denies the app_show command without any pre-configured scope.", + "description": "core:app:allow-app-hide -> Enables the app_hide command without any pre-configured scope.", "type": "string", "enum": [ - "app:deny-app-show" + "core:app:allow-app-hide" ] }, { - "description": "app:deny-default-window-icon -> Denies the default_window_icon command without any pre-configured scope.", + "description": "core:app:allow-app-show -> Enables the app_show command without any pre-configured scope.", "type": "string", "enum": [ - "app:deny-default-window-icon" + "core:app:allow-app-show" ] }, { - "description": "app:deny-name -> Denies the name command without any pre-configured scope.", + "description": "core:app:allow-default-window-icon -> Enables the default_window_icon command without any pre-configured scope.", "type": "string", "enum": [ - "app:deny-name" + "core:app:allow-default-window-icon" ] }, { - "description": "app:deny-tauri-version -> Denies the tauri_version command without any pre-configured scope.", + "description": "core:app:allow-name -> Enables the name command without any pre-configured scope.", "type": "string", "enum": [ - "app:deny-tauri-version" + "core:app:allow-name" ] }, { - "description": "app:deny-version -> Denies the version command without any pre-configured scope.", + "description": "core:app:allow-tauri-version -> Enables the tauri_version command without any pre-configured scope.", "type": "string", "enum": [ - "app:deny-version" + "core:app:allow-tauri-version" ] }, { - "description": "autostart:default -> This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n", + "description": "core:app:allow-version -> Enables the version command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:default" + "core:app:allow-version" ] }, { - "description": "autostart:allow-disable -> Enables the disable command without any pre-configured scope.", + "description": "core:app:deny-app-hide -> Denies the app_hide command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:allow-disable" + "core:app:deny-app-hide" ] }, { - "description": "autostart:allow-enable -> Enables the enable command without any pre-configured scope.", + "description": "core:app:deny-app-show -> Denies the app_show command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:allow-enable" + "core:app:deny-app-show" ] }, { - "description": "autostart:allow-is-enabled -> Enables the is_enabled command without any pre-configured scope.", + "description": "core:app:deny-default-window-icon -> Denies the default_window_icon command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:allow-is-enabled" + "core:app:deny-default-window-icon" ] }, { - "description": "autostart:deny-disable -> Denies the disable command without any pre-configured scope.", + "description": "core:app:deny-name -> Denies the name command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:deny-disable" + "core:app:deny-name" ] }, { - "description": "autostart:deny-enable -> Denies the enable command without any pre-configured scope.", + "description": "core:app:deny-tauri-version -> Denies the tauri_version command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:deny-enable" + "core:app:deny-tauri-version" ] }, { - "description": "autostart:deny-is-enabled -> Denies the is_enabled command without any pre-configured scope.", + "description": "core:app:deny-version -> Denies the version command without any pre-configured scope.", "type": "string", "enum": [ - "autostart:deny-is-enabled" + "core:app:deny-version" ] }, { - "description": "dialog:default -> This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n", + "description": "core:event:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "dialog:default" + "core:event:default" ] }, { - "description": "dialog:allow-ask -> Enables the ask command without any pre-configured scope.", + "description": "core:event:allow-emit -> Enables the emit command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:allow-ask" + "core:event:allow-emit" ] }, { - "description": "dialog:allow-confirm -> Enables the confirm command without any pre-configured scope.", + "description": "core:event:allow-emit-to -> Enables the emit_to command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:allow-confirm" + "core:event:allow-emit-to" ] }, { - "description": "dialog:allow-message -> Enables the message command without any pre-configured scope.", + "description": "core:event:allow-listen -> Enables the listen command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:allow-message" + "core:event:allow-listen" ] }, { - "description": "dialog:allow-open -> Enables the open command without any pre-configured scope.", + "description": "core:event:allow-unlisten -> Enables the unlisten command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:allow-open" + "core:event:allow-unlisten" ] }, { - "description": "dialog:allow-save -> Enables the save command without any pre-configured scope.", + "description": "core:event:deny-emit -> Denies the emit command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:allow-save" + "core:event:deny-emit" ] }, { - "description": "dialog:deny-ask -> Denies the ask command without any pre-configured scope.", + "description": "core:event:deny-emit-to -> Denies the emit_to command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:deny-ask" + "core:event:deny-emit-to" ] }, { - "description": "dialog:deny-confirm -> Denies the confirm command without any pre-configured scope.", + "description": "core:event:deny-listen -> Denies the listen command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:deny-confirm" + "core:event:deny-listen" ] }, { - "description": "dialog:deny-message -> Denies the message command without any pre-configured scope.", + "description": "core:event:deny-unlisten -> Denies the unlisten command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:deny-message" + "core:event:deny-unlisten" ] }, { - "description": "dialog:deny-open -> Denies the open command without any pre-configured scope.", + "description": "core:image:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "dialog:deny-open" + "core:image:default" ] }, { - "description": "dialog:deny-save -> Denies the save command without any pre-configured scope.", + "description": "core:image:allow-from-bytes -> Enables the from_bytes command without any pre-configured scope.", "type": "string", "enum": [ - "dialog:deny-save" + "core:image:allow-from-bytes" ] }, { - "description": "event:default -> Default permissions for the plugin.", + "description": "core:image:allow-from-path -> Enables the from_path command without any pre-configured scope.", "type": "string", "enum": [ - "event:default" + "core:image:allow-from-path" ] }, { - "description": "event:allow-emit -> Enables the emit command without any pre-configured scope.", + "description": "core:image:allow-new -> Enables the new command without any pre-configured scope.", "type": "string", "enum": [ - "event:allow-emit" + "core:image:allow-new" ] }, { - "description": "event:allow-emit-to -> Enables the emit_to command without any pre-configured scope.", + "description": "core:image:allow-rgba -> Enables the rgba command without any pre-configured scope.", "type": "string", "enum": [ - "event:allow-emit-to" + "core:image:allow-rgba" ] }, { - "description": "event:allow-listen -> Enables the listen command without any pre-configured scope.", + "description": "core:image:allow-size -> Enables the size command without any pre-configured scope.", "type": "string", "enum": [ - "event:allow-listen" + "core:image:allow-size" ] }, { - "description": "event:allow-unlisten -> Enables the unlisten command without any pre-configured scope.", + "description": "core:image:deny-from-bytes -> Denies the from_bytes command without any pre-configured scope.", "type": "string", "enum": [ - "event:allow-unlisten" + "core:image:deny-from-bytes" ] }, { - "description": "event:deny-emit -> Denies the emit command without any pre-configured scope.", + "description": "core:image:deny-from-path -> Denies the from_path command without any pre-configured scope.", "type": "string", "enum": [ - "event:deny-emit" + "core:image:deny-from-path" ] }, { - "description": "event:deny-emit-to -> Denies the emit_to command without any pre-configured scope.", + "description": "core:image:deny-new -> Denies the new command without any pre-configured scope.", "type": "string", "enum": [ - "event:deny-emit-to" + "core:image:deny-new" ] }, { - "description": "event:deny-listen -> Denies the listen command without any pre-configured scope.", + "description": "core:image:deny-rgba -> Denies the rgba command without any pre-configured scope.", "type": "string", "enum": [ - "event:deny-listen" + "core:image:deny-rgba" ] }, { - "description": "event:deny-unlisten -> Denies the unlisten command without any pre-configured scope.", + "description": "core:image:deny-size -> Denies the size command without any pre-configured scope.", "type": "string", "enum": [ - "event:deny-unlisten" + "core:image:deny-size" ] }, { - "description": "image:default -> Default permissions for the plugin.", + "description": "core:menu:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "image:default" + "core:menu:default" ] }, { - "description": "image:allow-from-bytes -> Enables the from_bytes command without any pre-configured scope.", + "description": "core:menu:allow-append -> Enables the append command without any pre-configured scope.", "type": "string", "enum": [ - "image:allow-from-bytes" + "core:menu:allow-append" ] }, { - "description": "image:allow-from-path -> Enables the from_path command without any pre-configured scope.", + "description": "core:menu:allow-create-default -> Enables the create_default command without any pre-configured scope.", "type": "string", "enum": [ - "image:allow-from-path" + "core:menu:allow-create-default" ] }, { - "description": "image:allow-new -> Enables the new command without any pre-configured scope.", + "description": "core:menu:allow-get -> Enables the get command without any pre-configured scope.", "type": "string", "enum": [ - "image:allow-new" + "core:menu:allow-get" ] }, { - "description": "image:allow-rgba -> Enables the rgba command without any pre-configured scope.", + "description": "core:menu:allow-insert -> Enables the insert command without any pre-configured scope.", "type": "string", "enum": [ - "image:allow-rgba" + "core:menu:allow-insert" ] }, { - "description": "image:allow-size -> Enables the size command without any pre-configured scope.", + "description": "core:menu:allow-is-checked -> Enables the is_checked command without any pre-configured scope.", "type": "string", "enum": [ - "image:allow-size" + "core:menu:allow-is-checked" ] }, { - "description": "image:deny-from-bytes -> Denies the from_bytes command without any pre-configured scope.", + "description": "core:menu:allow-is-enabled -> Enables the is_enabled command without any pre-configured scope.", "type": "string", "enum": [ - "image:deny-from-bytes" + "core:menu:allow-is-enabled" ] }, { - "description": "image:deny-from-path -> Denies the from_path command without any pre-configured scope.", + "description": "core:menu:allow-items -> Enables the items command without any pre-configured scope.", "type": "string", "enum": [ - "image:deny-from-path" + "core:menu:allow-items" ] }, { - "description": "image:deny-new -> Denies the new command without any pre-configured scope.", + "description": "core:menu:allow-new -> Enables the new command without any pre-configured scope.", "type": "string", "enum": [ - "image:deny-new" + "core:menu:allow-new" ] }, { - "description": "image:deny-rgba -> Denies the rgba command without any pre-configured scope.", + "description": "core:menu:allow-popup -> Enables the popup command without any pre-configured scope.", "type": "string", "enum": [ - "image:deny-rgba" + "core:menu:allow-popup" ] }, { - "description": "image:deny-size -> Denies the size command without any pre-configured scope.", + "description": "core:menu:allow-prepend -> Enables the prepend command without any pre-configured scope.", "type": "string", "enum": [ - "image:deny-size" + "core:menu:allow-prepend" ] }, { - "description": "menu:default -> Default permissions for the plugin.", + "description": "core:menu:allow-remove -> Enables the remove command without any pre-configured scope.", "type": "string", "enum": [ - "menu:default" + "core:menu:allow-remove" ] }, { - "description": "menu:allow-append -> Enables the append command without any pre-configured scope.", + "description": "core:menu:allow-remove-at -> Enables the remove_at command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-append" + "core:menu:allow-remove-at" ] }, { - "description": "menu:allow-create-default -> Enables the create_default command without any pre-configured scope.", + "description": "core:menu:allow-set-accelerator -> Enables the set_accelerator command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-create-default" + "core:menu:allow-set-accelerator" ] }, { - "description": "menu:allow-get -> Enables the get command without any pre-configured scope.", + "description": "core:menu:allow-set-as-app-menu -> Enables the set_as_app_menu command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-get" + "core:menu:allow-set-as-app-menu" ] }, { - "description": "menu:allow-insert -> Enables the insert command without any pre-configured scope.", + "description": "core:menu:allow-set-as-help-menu-for-nsapp -> Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-insert" + "core:menu:allow-set-as-help-menu-for-nsapp" ] }, { - "description": "menu:allow-is-checked -> Enables the is_checked command without any pre-configured scope.", + "description": "core:menu:allow-set-as-window-menu -> Enables the set_as_window_menu command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-is-checked" + "core:menu:allow-set-as-window-menu" ] }, { - "description": "menu:allow-is-enabled -> Enables the is_enabled command without any pre-configured scope.", + "description": "core:menu:allow-set-as-windows-menu-for-nsapp -> Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-is-enabled" + "core:menu:allow-set-as-windows-menu-for-nsapp" ] }, { - "description": "menu:allow-items -> Enables the items command without any pre-configured scope.", + "description": "core:menu:allow-set-checked -> Enables the set_checked command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-items" + "core:menu:allow-set-checked" ] }, { - "description": "menu:allow-new -> Enables the new command without any pre-configured scope.", + "description": "core:menu:allow-set-enabled -> Enables the set_enabled command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-new" + "core:menu:allow-set-enabled" ] }, { - "description": "menu:allow-popup -> Enables the popup command without any pre-configured scope.", + "description": "core:menu:allow-set-icon -> Enables the set_icon command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-popup" + "core:menu:allow-set-icon" ] }, { - "description": "menu:allow-prepend -> Enables the prepend command without any pre-configured scope.", + "description": "core:menu:allow-set-text -> Enables the set_text command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-prepend" + "core:menu:allow-set-text" ] }, { - "description": "menu:allow-remove -> Enables the remove command without any pre-configured scope.", + "description": "core:menu:allow-text -> Enables the text command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-remove" + "core:menu:allow-text" ] }, { - "description": "menu:allow-remove-at -> Enables the remove_at command without any pre-configured scope.", + "description": "core:menu:deny-append -> Denies the append command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-remove-at" + "core:menu:deny-append" ] }, { - "description": "menu:allow-set-accelerator -> Enables the set_accelerator command without any pre-configured scope.", + "description": "core:menu:deny-create-default -> Denies the create_default command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-accelerator" + "core:menu:deny-create-default" ] }, { - "description": "menu:allow-set-as-app-menu -> Enables the set_as_app_menu command without any pre-configured scope.", + "description": "core:menu:deny-get -> Denies the get command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-as-app-menu" + "core:menu:deny-get" ] }, { - "description": "menu:allow-set-as-help-menu-for-nsapp -> Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.", + "description": "core:menu:deny-insert -> Denies the insert command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-as-help-menu-for-nsapp" + "core:menu:deny-insert" ] }, { - "description": "menu:allow-set-as-window-menu -> Enables the set_as_window_menu command without any pre-configured scope.", + "description": "core:menu:deny-is-checked -> Denies the is_checked command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-as-window-menu" + "core:menu:deny-is-checked" ] }, { - "description": "menu:allow-set-as-windows-menu-for-nsapp -> Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.", + "description": "core:menu:deny-is-enabled -> Denies the is_enabled command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-as-windows-menu-for-nsapp" + "core:menu:deny-is-enabled" ] }, { - "description": "menu:allow-set-checked -> Enables the set_checked command without any pre-configured scope.", + "description": "core:menu:deny-items -> Denies the items command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-checked" + "core:menu:deny-items" ] }, { - "description": "menu:allow-set-enabled -> Enables the set_enabled command without any pre-configured scope.", + "description": "core:menu:deny-new -> Denies the new command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-enabled" + "core:menu:deny-new" ] }, { - "description": "menu:allow-set-icon -> Enables the set_icon command without any pre-configured scope.", + "description": "core:menu:deny-popup -> Denies the popup command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-icon" + "core:menu:deny-popup" ] }, { - "description": "menu:allow-set-text -> Enables the set_text command without any pre-configured scope.", + "description": "core:menu:deny-prepend -> Denies the prepend command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-set-text" + "core:menu:deny-prepend" ] }, { - "description": "menu:allow-text -> Enables the text command without any pre-configured scope.", + "description": "core:menu:deny-remove -> Denies the remove command without any pre-configured scope.", "type": "string", "enum": [ - "menu:allow-text" + "core:menu:deny-remove" ] }, { - "description": "menu:deny-append -> Denies the append command without any pre-configured scope.", + "description": "core:menu:deny-remove-at -> Denies the remove_at command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-append" + "core:menu:deny-remove-at" ] }, { - "description": "menu:deny-create-default -> Denies the create_default command without any pre-configured scope.", + "description": "core:menu:deny-set-accelerator -> Denies the set_accelerator command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-create-default" + "core:menu:deny-set-accelerator" ] }, { - "description": "menu:deny-get -> Denies the get command without any pre-configured scope.", + "description": "core:menu:deny-set-as-app-menu -> Denies the set_as_app_menu command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-get" + "core:menu:deny-set-as-app-menu" ] }, { - "description": "menu:deny-insert -> Denies the insert command without any pre-configured scope.", + "description": "core:menu:deny-set-as-help-menu-for-nsapp -> Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-insert" + "core:menu:deny-set-as-help-menu-for-nsapp" ] }, { - "description": "menu:deny-is-checked -> Denies the is_checked command without any pre-configured scope.", + "description": "core:menu:deny-set-as-window-menu -> Denies the set_as_window_menu command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-is-checked" + "core:menu:deny-set-as-window-menu" ] }, { - "description": "menu:deny-is-enabled -> Denies the is_enabled command without any pre-configured scope.", + "description": "core:menu:deny-set-as-windows-menu-for-nsapp -> Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-is-enabled" + "core:menu:deny-set-as-windows-menu-for-nsapp" ] }, { - "description": "menu:deny-items -> Denies the items command without any pre-configured scope.", + "description": "core:menu:deny-set-checked -> Denies the set_checked command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-items" + "core:menu:deny-set-checked" ] }, { - "description": "menu:deny-new -> Denies the new command without any pre-configured scope.", + "description": "core:menu:deny-set-enabled -> Denies the set_enabled command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-new" + "core:menu:deny-set-enabled" ] }, { - "description": "menu:deny-popup -> Denies the popup command without any pre-configured scope.", + "description": "core:menu:deny-set-icon -> Denies the set_icon command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-popup" + "core:menu:deny-set-icon" ] }, { - "description": "menu:deny-prepend -> Denies the prepend command without any pre-configured scope.", + "description": "core:menu:deny-set-text -> Denies the set_text command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-prepend" + "core:menu:deny-set-text" ] }, { - "description": "menu:deny-remove -> Denies the remove command without any pre-configured scope.", + "description": "core:menu:deny-text -> Denies the text command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-remove" + "core:menu:deny-text" ] }, { - "description": "menu:deny-remove-at -> Denies the remove_at command without any pre-configured scope.", + "description": "core:path:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "menu:deny-remove-at" + "core:path:default" ] }, { - "description": "menu:deny-set-accelerator -> Denies the set_accelerator command without any pre-configured scope.", + "description": "core:path:allow-basename -> Enables the basename command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-accelerator" + "core:path:allow-basename" ] }, { - "description": "menu:deny-set-as-app-menu -> Denies the set_as_app_menu command without any pre-configured scope.", + "description": "core:path:allow-dirname -> Enables the dirname command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-as-app-menu" + "core:path:allow-dirname" ] }, { - "description": "menu:deny-set-as-help-menu-for-nsapp -> Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.", + "description": "core:path:allow-extname -> Enables the extname command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-as-help-menu-for-nsapp" + "core:path:allow-extname" ] }, { - "description": "menu:deny-set-as-window-menu -> Denies the set_as_window_menu command without any pre-configured scope.", + "description": "core:path:allow-is-absolute -> Enables the is_absolute command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-as-window-menu" + "core:path:allow-is-absolute" ] }, { - "description": "menu:deny-set-as-windows-menu-for-nsapp -> Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.", + "description": "core:path:allow-join -> Enables the join command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-as-windows-menu-for-nsapp" + "core:path:allow-join" ] }, { - "description": "menu:deny-set-checked -> Denies the set_checked command without any pre-configured scope.", + "description": "core:path:allow-normalize -> Enables the normalize command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-checked" + "core:path:allow-normalize" ] }, { - "description": "menu:deny-set-enabled -> Denies the set_enabled command without any pre-configured scope.", + "description": "core:path:allow-resolve -> Enables the resolve command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-enabled" + "core:path:allow-resolve" ] }, { - "description": "menu:deny-set-icon -> Denies the set_icon command without any pre-configured scope.", + "description": "core:path:allow-resolve-directory -> Enables the resolve_directory command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-icon" + "core:path:allow-resolve-directory" ] }, { - "description": "menu:deny-set-text -> Denies the set_text command without any pre-configured scope.", + "description": "core:path:deny-basename -> Denies the basename command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-set-text" + "core:path:deny-basename" ] }, { - "description": "menu:deny-text -> Denies the text command without any pre-configured scope.", + "description": "core:path:deny-dirname -> Denies the dirname command without any pre-configured scope.", "type": "string", "enum": [ - "menu:deny-text" + "core:path:deny-dirname" ] }, { - "description": "notification:default -> This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n", + "description": "core:path:deny-extname -> Denies the extname command without any pre-configured scope.", "type": "string", "enum": [ - "notification:default" + "core:path:deny-extname" ] }, { - "description": "notification:allow-batch -> Enables the batch command without any pre-configured scope.", + "description": "core:path:deny-is-absolute -> Denies the is_absolute command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-batch" + "core:path:deny-is-absolute" ] }, { - "description": "notification:allow-cancel -> Enables the cancel command without any pre-configured scope.", + "description": "core:path:deny-join -> Denies the join command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-cancel" + "core:path:deny-join" ] }, { - "description": "notification:allow-check-permissions -> Enables the check_permissions command without any pre-configured scope.", + "description": "core:path:deny-normalize -> Denies the normalize command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-check-permissions" + "core:path:deny-normalize" ] }, { - "description": "notification:allow-create-channel -> Enables the create_channel command without any pre-configured scope.", + "description": "core:path:deny-resolve -> Denies the resolve command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-create-channel" + "core:path:deny-resolve" ] }, { - "description": "notification:allow-delete-channel -> Enables the delete_channel command without any pre-configured scope.", + "description": "core:path:deny-resolve-directory -> Denies the resolve_directory command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-delete-channel" + "core:path:deny-resolve-directory" ] }, { - "description": "notification:allow-get-active -> Enables the get_active command without any pre-configured scope.", + "description": "core:resources:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "notification:allow-get-active" + "core:resources:default" ] }, { - "description": "notification:allow-get-pending -> Enables the get_pending command without any pre-configured scope.", + "description": "core:resources:allow-close -> Enables the close command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-get-pending" + "core:resources:allow-close" ] }, { - "description": "notification:allow-is-permission-granted -> Enables the is_permission_granted command without any pre-configured scope.", + "description": "core:resources:deny-close -> Denies the close command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-is-permission-granted" + "core:resources:deny-close" ] }, { - "description": "notification:allow-list-channels -> Enables the list_channels command without any pre-configured scope.", + "description": "core:tray:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "notification:allow-list-channels" + "core:tray:default" ] }, { - "description": "notification:allow-notify -> Enables the notify command without any pre-configured scope.", + "description": "core:tray:allow-get-by-id -> Enables the get_by_id command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-notify" + "core:tray:allow-get-by-id" ] }, { - "description": "notification:allow-permission-state -> Enables the permission_state command without any pre-configured scope.", + "description": "core:tray:allow-new -> Enables the new command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-permission-state" + "core:tray:allow-new" ] }, { - "description": "notification:allow-register-action-types -> Enables the register_action_types command without any pre-configured scope.", + "description": "core:tray:allow-remove-by-id -> Enables the remove_by_id command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-register-action-types" + "core:tray:allow-remove-by-id" ] }, { - "description": "notification:allow-register-listener -> Enables the register_listener command without any pre-configured scope.", + "description": "core:tray:allow-set-icon -> Enables the set_icon command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-register-listener" + "core:tray:allow-set-icon" ] }, { - "description": "notification:allow-remove-active -> Enables the remove_active command without any pre-configured scope.", + "description": "core:tray:allow-set-icon-as-template -> Enables the set_icon_as_template command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-remove-active" + "core:tray:allow-set-icon-as-template" ] }, { - "description": "notification:allow-request-permission -> Enables the request_permission command without any pre-configured scope.", + "description": "core:tray:allow-set-menu -> Enables the set_menu command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-request-permission" + "core:tray:allow-set-menu" ] }, { - "description": "notification:allow-show -> Enables the show command without any pre-configured scope.", + "description": "core:tray:allow-set-show-menu-on-left-click -> Enables the set_show_menu_on_left_click command without any pre-configured scope.", "type": "string", "enum": [ - "notification:allow-show" + "core:tray:allow-set-show-menu-on-left-click" ] }, { - "description": "notification:deny-batch -> Denies the batch command without any pre-configured scope.", + "description": "core:tray:allow-set-temp-dir-path -> Enables the set_temp_dir_path command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-batch" + "core:tray:allow-set-temp-dir-path" ] }, { - "description": "notification:deny-cancel -> Denies the cancel command without any pre-configured scope.", + "description": "core:tray:allow-set-title -> Enables the set_title command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-cancel" + "core:tray:allow-set-title" ] }, { - "description": "notification:deny-check-permissions -> Denies the check_permissions command without any pre-configured scope.", + "description": "core:tray:allow-set-tooltip -> Enables the set_tooltip command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-check-permissions" + "core:tray:allow-set-tooltip" ] }, { - "description": "notification:deny-create-channel -> Denies the create_channel command without any pre-configured scope.", + "description": "core:tray:allow-set-visible -> Enables the set_visible command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-create-channel" + "core:tray:allow-set-visible" ] }, { - "description": "notification:deny-delete-channel -> Denies the delete_channel command without any pre-configured scope.", + "description": "core:tray:deny-get-by-id -> Denies the get_by_id command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-delete-channel" + "core:tray:deny-get-by-id" ] }, { - "description": "notification:deny-get-active -> Denies the get_active command without any pre-configured scope.", + "description": "core:tray:deny-new -> Denies the new command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-get-active" + "core:tray:deny-new" ] }, { - "description": "notification:deny-get-pending -> Denies the get_pending command without any pre-configured scope.", + "description": "core:tray:deny-remove-by-id -> Denies the remove_by_id command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-get-pending" + "core:tray:deny-remove-by-id" ] }, { - "description": "notification:deny-is-permission-granted -> Denies the is_permission_granted command without any pre-configured scope.", + "description": "core:tray:deny-set-icon -> Denies the set_icon command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-is-permission-granted" + "core:tray:deny-set-icon" ] }, { - "description": "notification:deny-list-channels -> Denies the list_channels command without any pre-configured scope.", + "description": "core:tray:deny-set-icon-as-template -> Denies the set_icon_as_template command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-list-channels" + "core:tray:deny-set-icon-as-template" ] }, { - "description": "notification:deny-notify -> Denies the notify command without any pre-configured scope.", + "description": "core:tray:deny-set-menu -> Denies the set_menu command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-notify" + "core:tray:deny-set-menu" ] }, { - "description": "notification:deny-permission-state -> Denies the permission_state command without any pre-configured scope.", + "description": "core:tray:deny-set-show-menu-on-left-click -> Denies the set_show_menu_on_left_click command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-permission-state" + "core:tray:deny-set-show-menu-on-left-click" ] }, { - "description": "notification:deny-register-action-types -> Denies the register_action_types command without any pre-configured scope.", + "description": "core:tray:deny-set-temp-dir-path -> Denies the set_temp_dir_path command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-register-action-types" + "core:tray:deny-set-temp-dir-path" ] }, { - "description": "notification:deny-register-listener -> Denies the register_listener command without any pre-configured scope.", + "description": "core:tray:deny-set-title -> Denies the set_title command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-register-listener" + "core:tray:deny-set-title" ] }, { - "description": "notification:deny-remove-active -> Denies the remove_active command without any pre-configured scope.", + "description": "core:tray:deny-set-tooltip -> Denies the set_tooltip command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-remove-active" + "core:tray:deny-set-tooltip" ] }, { - "description": "notification:deny-request-permission -> Denies the request_permission command without any pre-configured scope.", + "description": "core:tray:deny-set-visible -> Denies the set_visible command without any pre-configured scope.", "type": "string", "enum": [ - "notification:deny-request-permission" + "core:tray:deny-set-visible" ] }, { - "description": "notification:deny-show -> Denies the show command without any pre-configured scope.", + "description": "core:webview:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "notification:deny-show" + "core:webview:default" ] }, { - "description": "path:default -> Default permissions for the plugin.", + "description": "core:webview:allow-create-webview -> Enables the create_webview command without any pre-configured scope.", "type": "string", "enum": [ - "path:default" + "core:webview:allow-create-webview" ] }, { - "description": "path:allow-basename -> Enables the basename command without any pre-configured scope.", + "description": "core:webview:allow-create-webview-window -> Enables the create_webview_window command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-basename" + "core:webview:allow-create-webview-window" ] }, { - "description": "path:allow-dirname -> Enables the dirname command without any pre-configured scope.", + "description": "core:webview:allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-dirname" + "core:webview:allow-internal-toggle-devtools" ] }, { - "description": "path:allow-extname -> Enables the extname command without any pre-configured scope.", + "description": "core:webview:allow-print -> Enables the print command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-extname" + "core:webview:allow-print" ] }, { - "description": "path:allow-is-absolute -> Enables the is_absolute command without any pre-configured scope.", + "description": "core:webview:allow-reparent -> Enables the reparent command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-is-absolute" + "core:webview:allow-reparent" ] }, { - "description": "path:allow-join -> Enables the join command without any pre-configured scope.", + "description": "core:webview:allow-set-webview-focus -> Enables the set_webview_focus command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-join" + "core:webview:allow-set-webview-focus" ] }, { - "description": "path:allow-normalize -> Enables the normalize command without any pre-configured scope.", + "description": "core:webview:allow-set-webview-position -> Enables the set_webview_position command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-normalize" + "core:webview:allow-set-webview-position" ] }, { - "description": "path:allow-resolve -> Enables the resolve command without any pre-configured scope.", + "description": "core:webview:allow-set-webview-size -> Enables the set_webview_size command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-resolve" + "core:webview:allow-set-webview-size" ] }, { - "description": "path:allow-resolve-directory -> Enables the resolve_directory command without any pre-configured scope.", + "description": "core:webview:allow-set-webview-zoom -> Enables the set_webview_zoom command without any pre-configured scope.", "type": "string", "enum": [ - "path:allow-resolve-directory" + "core:webview:allow-set-webview-zoom" ] }, { - "description": "path:deny-basename -> Denies the basename command without any pre-configured scope.", + "description": "core:webview:allow-webview-close -> Enables the webview_close command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-basename" + "core:webview:allow-webview-close" ] }, { - "description": "path:deny-dirname -> Denies the dirname command without any pre-configured scope.", + "description": "core:webview:allow-webview-position -> Enables the webview_position command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-dirname" + "core:webview:allow-webview-position" ] }, { - "description": "path:deny-extname -> Denies the extname command without any pre-configured scope.", + "description": "core:webview:allow-webview-size -> Enables the webview_size command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-extname" + "core:webview:allow-webview-size" ] }, { - "description": "path:deny-is-absolute -> Denies the is_absolute command without any pre-configured scope.", + "description": "core:webview:deny-create-webview -> Denies the create_webview command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-is-absolute" + "core:webview:deny-create-webview" ] }, { - "description": "path:deny-join -> Denies the join command without any pre-configured scope.", + "description": "core:webview:deny-create-webview-window -> Denies the create_webview_window command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-join" + "core:webview:deny-create-webview-window" ] }, { - "description": "path:deny-normalize -> Denies the normalize command without any pre-configured scope.", + "description": "core:webview:deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-normalize" + "core:webview:deny-internal-toggle-devtools" ] }, { - "description": "path:deny-resolve -> Denies the resolve command without any pre-configured scope.", + "description": "core:webview:deny-print -> Denies the print command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-resolve" + "core:webview:deny-print" ] }, { - "description": "path:deny-resolve-directory -> Denies the resolve_directory command without any pre-configured scope.", + "description": "core:webview:deny-reparent -> Denies the reparent command without any pre-configured scope.", "type": "string", "enum": [ - "path:deny-resolve-directory" + "core:webview:deny-reparent" ] }, { - "description": "process:default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n", + "description": "core:webview:deny-set-webview-focus -> Denies the set_webview_focus command without any pre-configured scope.", "type": "string", "enum": [ - "process:default" + "core:webview:deny-set-webview-focus" ] }, { - "description": "process:allow-exit -> Enables the exit command without any pre-configured scope.", + "description": "core:webview:deny-set-webview-position -> Denies the set_webview_position command without any pre-configured scope.", "type": "string", "enum": [ - "process:allow-exit" + "core:webview:deny-set-webview-position" ] }, { - "description": "process:allow-restart -> Enables the restart command without any pre-configured scope.", + "description": "core:webview:deny-set-webview-size -> Denies the set_webview_size command without any pre-configured scope.", "type": "string", "enum": [ - "process:allow-restart" + "core:webview:deny-set-webview-size" ] }, { - "description": "process:deny-exit -> Denies the exit command without any pre-configured scope.", + "description": "core:webview:deny-set-webview-zoom -> Denies the set_webview_zoom command without any pre-configured scope.", "type": "string", "enum": [ - "process:deny-exit" + "core:webview:deny-set-webview-zoom" ] }, { - "description": "process:deny-restart -> Denies the restart command without any pre-configured scope.", + "description": "core:webview:deny-webview-close -> Denies the webview_close command without any pre-configured scope.", "type": "string", "enum": [ - "process:deny-restart" + "core:webview:deny-webview-close" ] }, { - "description": "resources:default -> Default permissions for the plugin.", + "description": "core:webview:deny-webview-position -> Denies the webview_position command without any pre-configured scope.", "type": "string", "enum": [ - "resources:default" + "core:webview:deny-webview-position" ] }, { - "description": "resources:allow-close -> Enables the close command without any pre-configured scope.", + "description": "core:webview:deny-webview-size -> Denies the webview_size command without any pre-configured scope.", "type": "string", "enum": [ - "resources:allow-close" + "core:webview:deny-webview-size" ] }, { - "description": "resources:deny-close -> Denies the close command without any pre-configured scope.", + "description": "core:window:default -> Default permissions for the plugin.", "type": "string", "enum": [ - "resources:deny-close" + "core:window:default" ] }, { - "description": "store:default -> This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n", + "description": "core:window:allow-available-monitors -> Enables the available_monitors command without any pre-configured scope.", "type": "string", "enum": [ - "store:default" + "core:window:allow-available-monitors" ] }, { - "description": "store:allow-clear -> Enables the clear command without any pre-configured scope.", + "description": "core:window:allow-center -> Enables the center command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-clear" + "core:window:allow-center" ] }, { - "description": "store:allow-delete -> Enables the delete command without any pre-configured scope.", + "description": "core:window:allow-close -> Enables the close command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-delete" + "core:window:allow-close" ] }, { - "description": "store:allow-entries -> Enables the entries command without any pre-configured scope.", + "description": "core:window:allow-create -> Enables the create command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-entries" + "core:window:allow-create" ] }, { - "description": "store:allow-get -> Enables the get command without any pre-configured scope.", + "description": "core:window:allow-current-monitor -> Enables the current_monitor command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-get" + "core:window:allow-current-monitor" ] }, { - "description": "store:allow-has -> Enables the has command without any pre-configured scope.", + "description": "core:window:allow-cursor-position -> Enables the cursor_position command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-has" + "core:window:allow-cursor-position" ] }, { - "description": "store:allow-keys -> Enables the keys command without any pre-configured scope.", + "description": "core:window:allow-destroy -> Enables the destroy command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-keys" + "core:window:allow-destroy" ] }, { - "description": "store:allow-length -> Enables the length command without any pre-configured scope.", + "description": "core:window:allow-hide -> Enables the hide command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-length" + "core:window:allow-hide" ] }, { - "description": "store:allow-load -> Enables the load command without any pre-configured scope.", + "description": "core:window:allow-inner-position -> Enables the inner_position command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-load" + "core:window:allow-inner-position" ] }, { - "description": "store:allow-reset -> Enables the reset command without any pre-configured scope.", + "description": "core:window:allow-inner-size -> Enables the inner_size command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-reset" + "core:window:allow-inner-size" ] }, { - "description": "store:allow-save -> Enables the save command without any pre-configured scope.", + "description": "core:window:allow-internal-toggle-maximize -> Enables the internal_toggle_maximize command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-save" + "core:window:allow-internal-toggle-maximize" ] }, { - "description": "store:allow-set -> Enables the set command without any pre-configured scope.", + "description": "core:window:allow-is-closable -> Enables the is_closable command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-set" + "core:window:allow-is-closable" ] }, { - "description": "store:allow-values -> Enables the values command without any pre-configured scope.", + "description": "core:window:allow-is-decorated -> Enables the is_decorated command without any pre-configured scope.", "type": "string", "enum": [ - "store:allow-values" + "core:window:allow-is-decorated" ] }, { - "description": "store:deny-clear -> Denies the clear command without any pre-configured scope.", + "description": "core:window:allow-is-focused -> Enables the is_focused command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-clear" + "core:window:allow-is-focused" ] }, { - "description": "store:deny-delete -> Denies the delete command without any pre-configured scope.", + "description": "core:window:allow-is-fullscreen -> Enables the is_fullscreen command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-delete" + "core:window:allow-is-fullscreen" ] }, { - "description": "store:deny-entries -> Denies the entries command without any pre-configured scope.", + "description": "core:window:allow-is-maximizable -> Enables the is_maximizable command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-entries" + "core:window:allow-is-maximizable" ] }, { - "description": "store:deny-get -> Denies the get command without any pre-configured scope.", + "description": "core:window:allow-is-maximized -> Enables the is_maximized command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-get" + "core:window:allow-is-maximized" ] }, { - "description": "store:deny-has -> Denies the has command without any pre-configured scope.", + "description": "core:window:allow-is-minimizable -> Enables the is_minimizable command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-has" + "core:window:allow-is-minimizable" ] }, { - "description": "store:deny-keys -> Denies the keys command without any pre-configured scope.", + "description": "core:window:allow-is-minimized -> Enables the is_minimized command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-keys" + "core:window:allow-is-minimized" ] }, { - "description": "store:deny-length -> Denies the length command without any pre-configured scope.", + "description": "core:window:allow-is-resizable -> Enables the is_resizable command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-length" + "core:window:allow-is-resizable" ] }, { - "description": "store:deny-load -> Denies the load command without any pre-configured scope.", + "description": "core:window:allow-is-visible -> Enables the is_visible command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-load" + "core:window:allow-is-visible" ] }, { - "description": "store:deny-reset -> Denies the reset command without any pre-configured scope.", + "description": "core:window:allow-maximize -> Enables the maximize command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-reset" + "core:window:allow-maximize" ] }, { - "description": "store:deny-save -> Denies the save command without any pre-configured scope.", + "description": "core:window:allow-minimize -> Enables the minimize command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-save" + "core:window:allow-minimize" ] }, { - "description": "store:deny-set -> Denies the set command without any pre-configured scope.", + "description": "core:window:allow-monitor-from-point -> Enables the monitor_from_point command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-set" + "core:window:allow-monitor-from-point" ] }, { - "description": "store:deny-values -> Denies the values command without any pre-configured scope.", + "description": "core:window:allow-outer-position -> Enables the outer_position command without any pre-configured scope.", "type": "string", "enum": [ - "store:deny-values" + "core:window:allow-outer-position" ] }, { - "description": "tray:default -> Default permissions for the plugin.", + "description": "core:window:allow-outer-size -> Enables the outer_size command without any pre-configured scope.", "type": "string", "enum": [ - "tray:default" + "core:window:allow-outer-size" ] }, { - "description": "tray:allow-get-by-id -> Enables the get_by_id command without any pre-configured scope.", + "description": "core:window:allow-primary-monitor -> Enables the primary_monitor command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-get-by-id" + "core:window:allow-primary-monitor" ] }, { - "description": "tray:allow-new -> Enables the new command without any pre-configured scope.", + "description": "core:window:allow-request-user-attention -> Enables the request_user_attention command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-new" + "core:window:allow-request-user-attention" ] }, { - "description": "tray:allow-remove-by-id -> Enables the remove_by_id command without any pre-configured scope.", + "description": "core:window:allow-scale-factor -> Enables the scale_factor command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-remove-by-id" + "core:window:allow-scale-factor" ] }, { - "description": "tray:allow-set-icon -> Enables the set_icon command without any pre-configured scope.", + "description": "core:window:allow-set-always-on-bottom -> Enables the set_always_on_bottom command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-icon" + "core:window:allow-set-always-on-bottom" ] }, { - "description": "tray:allow-set-icon-as-template -> Enables the set_icon_as_template command without any pre-configured scope.", + "description": "core:window:allow-set-always-on-top -> Enables the set_always_on_top command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-icon-as-template" + "core:window:allow-set-always-on-top" ] }, { - "description": "tray:allow-set-menu -> Enables the set_menu command without any pre-configured scope.", + "description": "core:window:allow-set-closable -> Enables the set_closable command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-menu" + "core:window:allow-set-closable" ] }, { - "description": "tray:allow-set-show-menu-on-left-click -> Enables the set_show_menu_on_left_click command without any pre-configured scope.", + "description": "core:window:allow-set-content-protected -> Enables the set_content_protected command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-show-menu-on-left-click" + "core:window:allow-set-content-protected" ] }, { - "description": "tray:allow-set-temp-dir-path -> Enables the set_temp_dir_path command without any pre-configured scope.", + "description": "core:window:allow-set-cursor-grab -> Enables the set_cursor_grab command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-temp-dir-path" + "core:window:allow-set-cursor-grab" ] }, { - "description": "tray:allow-set-title -> Enables the set_title command without any pre-configured scope.", + "description": "core:window:allow-set-cursor-icon -> Enables the set_cursor_icon command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-title" + "core:window:allow-set-cursor-icon" ] }, { - "description": "tray:allow-set-tooltip -> Enables the set_tooltip command without any pre-configured scope.", + "description": "core:window:allow-set-cursor-position -> Enables the set_cursor_position command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-tooltip" + "core:window:allow-set-cursor-position" ] }, { - "description": "tray:allow-set-visible -> Enables the set_visible command without any pre-configured scope.", + "description": "core:window:allow-set-cursor-visible -> Enables the set_cursor_visible command without any pre-configured scope.", "type": "string", "enum": [ - "tray:allow-set-visible" + "core:window:allow-set-cursor-visible" ] }, { - "description": "tray:deny-get-by-id -> Denies the get_by_id command without any pre-configured scope.", + "description": "core:window:allow-set-decorations -> Enables the set_decorations command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-get-by-id" + "core:window:allow-set-decorations" ] }, { - "description": "tray:deny-new -> Denies the new command without any pre-configured scope.", + "description": "core:window:allow-set-effects -> Enables the set_effects command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-new" + "core:window:allow-set-effects" ] }, { - "description": "tray:deny-remove-by-id -> Denies the remove_by_id command without any pre-configured scope.", + "description": "core:window:allow-set-focus -> Enables the set_focus command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-remove-by-id" + "core:window:allow-set-focus" ] }, { - "description": "tray:deny-set-icon -> Denies the set_icon command without any pre-configured scope.", + "description": "core:window:allow-set-fullscreen -> Enables the set_fullscreen command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-icon" + "core:window:allow-set-fullscreen" ] }, { - "description": "tray:deny-set-icon-as-template -> Denies the set_icon_as_template command without any pre-configured scope.", + "description": "core:window:allow-set-icon -> Enables the set_icon command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-icon-as-template" + "core:window:allow-set-icon" ] }, { - "description": "tray:deny-set-menu -> Denies the set_menu command without any pre-configured scope.", + "description": "core:window:allow-set-ignore-cursor-events -> Enables the set_ignore_cursor_events command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-menu" + "core:window:allow-set-ignore-cursor-events" ] }, { - "description": "tray:deny-set-show-menu-on-left-click -> Denies the set_show_menu_on_left_click command without any pre-configured scope.", + "description": "core:window:allow-set-max-size -> Enables the set_max_size command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-show-menu-on-left-click" + "core:window:allow-set-max-size" ] }, { - "description": "tray:deny-set-temp-dir-path -> Denies the set_temp_dir_path command without any pre-configured scope.", + "description": "core:window:allow-set-maximizable -> Enables the set_maximizable command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-temp-dir-path" + "core:window:allow-set-maximizable" ] }, { - "description": "tray:deny-set-title -> Denies the set_title command without any pre-configured scope.", + "description": "core:window:allow-set-min-size -> Enables the set_min_size command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-title" + "core:window:allow-set-min-size" ] }, { - "description": "tray:deny-set-tooltip -> Denies the set_tooltip command without any pre-configured scope.", + "description": "core:window:allow-set-minimizable -> Enables the set_minimizable command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-tooltip" + "core:window:allow-set-minimizable" ] }, { - "description": "tray:deny-set-visible -> Denies the set_visible command without any pre-configured scope.", + "description": "core:window:allow-set-position -> Enables the set_position command without any pre-configured scope.", "type": "string", "enum": [ - "tray:deny-set-visible" + "core:window:allow-set-position" ] }, { - "description": "webview:default -> Default permissions for the plugin.", + "description": "core:window:allow-set-progress-bar -> Enables the set_progress_bar command without any pre-configured scope.", "type": "string", "enum": [ - "webview:default" + "core:window:allow-set-progress-bar" ] }, { - "description": "webview:allow-create-webview -> Enables the create_webview command without any pre-configured scope.", + "description": "core:window:allow-set-resizable -> Enables the set_resizable command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-create-webview" + "core:window:allow-set-resizable" ] }, { - "description": "webview:allow-create-webview-window -> Enables the create_webview_window command without any pre-configured scope.", + "description": "core:window:allow-set-shadow -> Enables the set_shadow command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-create-webview-window" + "core:window:allow-set-shadow" ] }, { - "description": "webview:allow-internal-toggle-devtools -> Enables the internal_toggle_devtools command without any pre-configured scope.", + "description": "core:window:allow-set-size -> Enables the set_size command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-internal-toggle-devtools" + "core:window:allow-set-size" ] }, { - "description": "webview:allow-print -> Enables the print command without any pre-configured scope.", + "description": "core:window:allow-set-size-constraints -> Enables the set_size_constraints command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-print" + "core:window:allow-set-size-constraints" ] }, { - "description": "webview:allow-reparent -> Enables the reparent command without any pre-configured scope.", + "description": "core:window:allow-set-skip-taskbar -> Enables the set_skip_taskbar command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-reparent" + "core:window:allow-set-skip-taskbar" ] }, { - "description": "webview:allow-set-webview-focus -> Enables the set_webview_focus command without any pre-configured scope.", + "description": "core:window:allow-set-title -> Enables the set_title command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-set-webview-focus" + "core:window:allow-set-title" ] }, { - "description": "webview:allow-set-webview-position -> Enables the set_webview_position command without any pre-configured scope.", + "description": "core:window:allow-set-title-bar-style -> Enables the set_title_bar_style command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-set-webview-position" + "core:window:allow-set-title-bar-style" ] }, { - "description": "webview:allow-set-webview-size -> Enables the set_webview_size command without any pre-configured scope.", + "description": "core:window:allow-set-visible-on-all-workspaces -> Enables the set_visible_on_all_workspaces command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-set-webview-size" + "core:window:allow-set-visible-on-all-workspaces" ] }, { - "description": "webview:allow-set-webview-zoom -> Enables the set_webview_zoom command without any pre-configured scope.", + "description": "core:window:allow-show -> Enables the show command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-set-webview-zoom" + "core:window:allow-show" ] }, { - "description": "webview:allow-webview-close -> Enables the webview_close command without any pre-configured scope.", + "description": "core:window:allow-start-dragging -> Enables the start_dragging command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-webview-close" + "core:window:allow-start-dragging" ] }, { - "description": "webview:allow-webview-position -> Enables the webview_position command without any pre-configured scope.", + "description": "core:window:allow-start-resize-dragging -> Enables the start_resize_dragging command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-webview-position" + "core:window:allow-start-resize-dragging" ] }, { - "description": "webview:allow-webview-size -> Enables the webview_size command without any pre-configured scope.", + "description": "core:window:allow-theme -> Enables the theme command without any pre-configured scope.", "type": "string", "enum": [ - "webview:allow-webview-size" + "core:window:allow-theme" ] }, { - "description": "webview:deny-create-webview -> Denies the create_webview command without any pre-configured scope.", + "description": "core:window:allow-title -> Enables the title command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-create-webview" + "core:window:allow-title" ] }, { - "description": "webview:deny-create-webview-window -> Denies the create_webview_window command without any pre-configured scope.", + "description": "core:window:allow-toggle-maximize -> Enables the toggle_maximize command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-create-webview-window" + "core:window:allow-toggle-maximize" ] }, { - "description": "webview:deny-internal-toggle-devtools -> Denies the internal_toggle_devtools command without any pre-configured scope.", + "description": "core:window:allow-unmaximize -> Enables the unmaximize command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-internal-toggle-devtools" + "core:window:allow-unmaximize" ] }, { - "description": "webview:deny-print -> Denies the print command without any pre-configured scope.", + "description": "core:window:allow-unminimize -> Enables the unminimize command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-print" + "core:window:allow-unminimize" ] }, { - "description": "webview:deny-reparent -> Denies the reparent command without any pre-configured scope.", + "description": "core:window:deny-available-monitors -> Denies the available_monitors command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-reparent" + "core:window:deny-available-monitors" ] }, { - "description": "webview:deny-set-webview-focus -> Denies the set_webview_focus command without any pre-configured scope.", + "description": "core:window:deny-center -> Denies the center command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-set-webview-focus" + "core:window:deny-center" ] }, { - "description": "webview:deny-set-webview-position -> Denies the set_webview_position command without any pre-configured scope.", + "description": "core:window:deny-close -> Denies the close command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-set-webview-position" + "core:window:deny-close" ] }, { - "description": "webview:deny-set-webview-size -> Denies the set_webview_size command without any pre-configured scope.", + "description": "core:window:deny-create -> Denies the create command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-set-webview-size" + "core:window:deny-create" ] }, { - "description": "webview:deny-set-webview-zoom -> Denies the set_webview_zoom command without any pre-configured scope.", + "description": "core:window:deny-current-monitor -> Denies the current_monitor command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-set-webview-zoom" + "core:window:deny-current-monitor" ] }, { - "description": "webview:deny-webview-close -> Denies the webview_close command without any pre-configured scope.", + "description": "core:window:deny-cursor-position -> Denies the cursor_position command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-webview-close" + "core:window:deny-cursor-position" ] }, { - "description": "webview:deny-webview-position -> Denies the webview_position command without any pre-configured scope.", + "description": "core:window:deny-destroy -> Denies the destroy command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-webview-position" + "core:window:deny-destroy" ] }, { - "description": "webview:deny-webview-size -> Denies the webview_size command without any pre-configured scope.", + "description": "core:window:deny-hide -> Denies the hide command without any pre-configured scope.", "type": "string", "enum": [ - "webview:deny-webview-size" + "core:window:deny-hide" ] }, { - "description": "window:default -> Default permissions for the plugin.", + "description": "core:window:deny-inner-position -> Denies the inner_position command without any pre-configured scope.", "type": "string", "enum": [ - "window:default" + "core:window:deny-inner-position" ] }, { - "description": "window:allow-available-monitors -> Enables the available_monitors command without any pre-configured scope.", + "description": "core:window:deny-inner-size -> Denies the inner_size command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-available-monitors" + "core:window:deny-inner-size" ] }, { - "description": "window:allow-center -> Enables the center command without any pre-configured scope.", + "description": "core:window:deny-internal-toggle-maximize -> Denies the internal_toggle_maximize command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-center" + "core:window:deny-internal-toggle-maximize" ] }, { - "description": "window:allow-close -> Enables the close command without any pre-configured scope.", + "description": "core:window:deny-is-closable -> Denies the is_closable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-close" + "core:window:deny-is-closable" ] }, { - "description": "window:allow-create -> Enables the create command without any pre-configured scope.", + "description": "core:window:deny-is-decorated -> Denies the is_decorated command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-create" + "core:window:deny-is-decorated" ] }, { - "description": "window:allow-current-monitor -> Enables the current_monitor command without any pre-configured scope.", + "description": "core:window:deny-is-focused -> Denies the is_focused command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-current-monitor" + "core:window:deny-is-focused" ] }, { - "description": "window:allow-cursor-position -> Enables the cursor_position command without any pre-configured scope.", + "description": "core:window:deny-is-fullscreen -> Denies the is_fullscreen command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-cursor-position" + "core:window:deny-is-fullscreen" ] }, { - "description": "window:allow-destroy -> Enables the destroy command without any pre-configured scope.", + "description": "core:window:deny-is-maximizable -> Denies the is_maximizable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-destroy" + "core:window:deny-is-maximizable" ] }, { - "description": "window:allow-hide -> Enables the hide command without any pre-configured scope.", + "description": "core:window:deny-is-maximized -> Denies the is_maximized command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-hide" + "core:window:deny-is-maximized" ] }, { - "description": "window:allow-inner-position -> Enables the inner_position command without any pre-configured scope.", + "description": "core:window:deny-is-minimizable -> Denies the is_minimizable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-inner-position" + "core:window:deny-is-minimizable" ] }, { - "description": "window:allow-inner-size -> Enables the inner_size command without any pre-configured scope.", + "description": "core:window:deny-is-minimized -> Denies the is_minimized command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-inner-size" + "core:window:deny-is-minimized" ] }, { - "description": "window:allow-internal-toggle-maximize -> Enables the internal_toggle_maximize command without any pre-configured scope.", + "description": "core:window:deny-is-resizable -> Denies the is_resizable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-internal-toggle-maximize" + "core:window:deny-is-resizable" ] }, { - "description": "window:allow-is-closable -> Enables the is_closable command without any pre-configured scope.", + "description": "core:window:deny-is-visible -> Denies the is_visible command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-closable" + "core:window:deny-is-visible" ] }, { - "description": "window:allow-is-decorated -> Enables the is_decorated command without any pre-configured scope.", + "description": "core:window:deny-maximize -> Denies the maximize command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-decorated" + "core:window:deny-maximize" ] }, { - "description": "window:allow-is-focused -> Enables the is_focused command without any pre-configured scope.", + "description": "core:window:deny-minimize -> Denies the minimize command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-focused" + "core:window:deny-minimize" ] }, { - "description": "window:allow-is-fullscreen -> Enables the is_fullscreen command without any pre-configured scope.", + "description": "core:window:deny-monitor-from-point -> Denies the monitor_from_point command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-fullscreen" + "core:window:deny-monitor-from-point" ] }, { - "description": "window:allow-is-maximizable -> Enables the is_maximizable command without any pre-configured scope.", + "description": "core:window:deny-outer-position -> Denies the outer_position command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-maximizable" + "core:window:deny-outer-position" ] }, { - "description": "window:allow-is-maximized -> Enables the is_maximized command without any pre-configured scope.", + "description": "core:window:deny-outer-size -> Denies the outer_size command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-maximized" + "core:window:deny-outer-size" ] }, { - "description": "window:allow-is-minimizable -> Enables the is_minimizable command without any pre-configured scope.", + "description": "core:window:deny-primary-monitor -> Denies the primary_monitor command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-minimizable" + "core:window:deny-primary-monitor" ] }, { - "description": "window:allow-is-minimized -> Enables the is_minimized command without any pre-configured scope.", + "description": "core:window:deny-request-user-attention -> Denies the request_user_attention command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-minimized" + "core:window:deny-request-user-attention" ] }, { - "description": "window:allow-is-resizable -> Enables the is_resizable command without any pre-configured scope.", + "description": "core:window:deny-scale-factor -> Denies the scale_factor command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-resizable" + "core:window:deny-scale-factor" ] }, { - "description": "window:allow-is-visible -> Enables the is_visible command without any pre-configured scope.", + "description": "core:window:deny-set-always-on-bottom -> Denies the set_always_on_bottom command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-is-visible" + "core:window:deny-set-always-on-bottom" ] }, { - "description": "window:allow-maximize -> Enables the maximize command without any pre-configured scope.", + "description": "core:window:deny-set-always-on-top -> Denies the set_always_on_top command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-maximize" + "core:window:deny-set-always-on-top" ] }, { - "description": "window:allow-minimize -> Enables the minimize command without any pre-configured scope.", + "description": "core:window:deny-set-closable -> Denies the set_closable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-minimize" + "core:window:deny-set-closable" ] }, { - "description": "window:allow-monitor-from-point -> Enables the monitor_from_point command without any pre-configured scope.", + "description": "core:window:deny-set-content-protected -> Denies the set_content_protected command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-monitor-from-point" + "core:window:deny-set-content-protected" ] }, { - "description": "window:allow-outer-position -> Enables the outer_position command without any pre-configured scope.", + "description": "core:window:deny-set-cursor-grab -> Denies the set_cursor_grab command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-outer-position" + "core:window:deny-set-cursor-grab" ] }, { - "description": "window:allow-outer-size -> Enables the outer_size command without any pre-configured scope.", + "description": "core:window:deny-set-cursor-icon -> Denies the set_cursor_icon command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-outer-size" + "core:window:deny-set-cursor-icon" ] }, { - "description": "window:allow-primary-monitor -> Enables the primary_monitor command without any pre-configured scope.", + "description": "core:window:deny-set-cursor-position -> Denies the set_cursor_position command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-primary-monitor" + "core:window:deny-set-cursor-position" ] }, { - "description": "window:allow-request-user-attention -> Enables the request_user_attention command without any pre-configured scope.", + "description": "core:window:deny-set-cursor-visible -> Denies the set_cursor_visible command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-request-user-attention" + "core:window:deny-set-cursor-visible" ] }, { - "description": "window:allow-scale-factor -> Enables the scale_factor command without any pre-configured scope.", + "description": "core:window:deny-set-decorations -> Denies the set_decorations command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-scale-factor" + "core:window:deny-set-decorations" ] }, { - "description": "window:allow-set-always-on-bottom -> Enables the set_always_on_bottom command without any pre-configured scope.", + "description": "core:window:deny-set-effects -> Denies the set_effects command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-always-on-bottom" + "core:window:deny-set-effects" ] }, { - "description": "window:allow-set-always-on-top -> Enables the set_always_on_top command without any pre-configured scope.", + "description": "core:window:deny-set-focus -> Denies the set_focus command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-always-on-top" + "core:window:deny-set-focus" ] }, { - "description": "window:allow-set-closable -> Enables the set_closable command without any pre-configured scope.", + "description": "core:window:deny-set-fullscreen -> Denies the set_fullscreen command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-closable" + "core:window:deny-set-fullscreen" ] }, { - "description": "window:allow-set-content-protected -> Enables the set_content_protected command without any pre-configured scope.", + "description": "core:window:deny-set-icon -> Denies the set_icon command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-content-protected" + "core:window:deny-set-icon" ] }, { - "description": "window:allow-set-cursor-grab -> Enables the set_cursor_grab command without any pre-configured scope.", + "description": "core:window:deny-set-ignore-cursor-events -> Denies the set_ignore_cursor_events command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-cursor-grab" + "core:window:deny-set-ignore-cursor-events" ] }, { - "description": "window:allow-set-cursor-icon -> Enables the set_cursor_icon command without any pre-configured scope.", + "description": "core:window:deny-set-max-size -> Denies the set_max_size command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-cursor-icon" + "core:window:deny-set-max-size" ] }, { - "description": "window:allow-set-cursor-position -> Enables the set_cursor_position command without any pre-configured scope.", + "description": "core:window:deny-set-maximizable -> Denies the set_maximizable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-cursor-position" + "core:window:deny-set-maximizable" ] }, { - "description": "window:allow-set-cursor-visible -> Enables the set_cursor_visible command without any pre-configured scope.", + "description": "core:window:deny-set-min-size -> Denies the set_min_size command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-cursor-visible" + "core:window:deny-set-min-size" ] }, { - "description": "window:allow-set-decorations -> Enables the set_decorations command without any pre-configured scope.", + "description": "core:window:deny-set-minimizable -> Denies the set_minimizable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-decorations" + "core:window:deny-set-minimizable" ] }, { - "description": "window:allow-set-effects -> Enables the set_effects command without any pre-configured scope.", + "description": "core:window:deny-set-position -> Denies the set_position command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-effects" + "core:window:deny-set-position" ] }, { - "description": "window:allow-set-focus -> Enables the set_focus command without any pre-configured scope.", + "description": "core:window:deny-set-progress-bar -> Denies the set_progress_bar command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-focus" + "core:window:deny-set-progress-bar" ] }, { - "description": "window:allow-set-fullscreen -> Enables the set_fullscreen command without any pre-configured scope.", + "description": "core:window:deny-set-resizable -> Denies the set_resizable command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-fullscreen" + "core:window:deny-set-resizable" ] }, { - "description": "window:allow-set-icon -> Enables the set_icon command without any pre-configured scope.", + "description": "core:window:deny-set-shadow -> Denies the set_shadow command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-icon" + "core:window:deny-set-shadow" ] }, { - "description": "window:allow-set-ignore-cursor-events -> Enables the set_ignore_cursor_events command without any pre-configured scope.", + "description": "core:window:deny-set-size -> Denies the set_size command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-ignore-cursor-events" + "core:window:deny-set-size" ] }, { - "description": "window:allow-set-max-size -> Enables the set_max_size command without any pre-configured scope.", + "description": "core:window:deny-set-size-constraints -> Denies the set_size_constraints command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-max-size" + "core:window:deny-set-size-constraints" ] }, { - "description": "window:allow-set-maximizable -> Enables the set_maximizable command without any pre-configured scope.", + "description": "core:window:deny-set-skip-taskbar -> Denies the set_skip_taskbar command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-maximizable" + "core:window:deny-set-skip-taskbar" ] }, { - "description": "window:allow-set-min-size -> Enables the set_min_size command without any pre-configured scope.", + "description": "core:window:deny-set-title -> Denies the set_title command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-min-size" + "core:window:deny-set-title" ] }, { - "description": "window:allow-set-minimizable -> Enables the set_minimizable command without any pre-configured scope.", + "description": "core:window:deny-set-title-bar-style -> Denies the set_title_bar_style command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-minimizable" + "core:window:deny-set-title-bar-style" ] }, { - "description": "window:allow-set-position -> Enables the set_position command without any pre-configured scope.", + "description": "core:window:deny-set-visible-on-all-workspaces -> Denies the set_visible_on_all_workspaces command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-position" + "core:window:deny-set-visible-on-all-workspaces" ] }, { - "description": "window:allow-set-progress-bar -> Enables the set_progress_bar command without any pre-configured scope.", + "description": "core:window:deny-show -> Denies the show command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-progress-bar" + "core:window:deny-show" ] }, { - "description": "window:allow-set-resizable -> Enables the set_resizable command without any pre-configured scope.", + "description": "core:window:deny-start-dragging -> Denies the start_dragging command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-resizable" + "core:window:deny-start-dragging" ] }, { - "description": "window:allow-set-shadow -> Enables the set_shadow command without any pre-configured scope.", + "description": "core:window:deny-start-resize-dragging -> Denies the start_resize_dragging command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-shadow" + "core:window:deny-start-resize-dragging" ] }, { - "description": "window:allow-set-size -> Enables the set_size command without any pre-configured scope.", + "description": "core:window:deny-theme -> Denies the theme command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-size" + "core:window:deny-theme" ] }, { - "description": "window:allow-set-skip-taskbar -> Enables the set_skip_taskbar command without any pre-configured scope.", + "description": "core:window:deny-title -> Denies the title command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-skip-taskbar" + "core:window:deny-title" ] }, { - "description": "window:allow-set-title -> Enables the set_title command without any pre-configured scope.", + "description": "core:window:deny-toggle-maximize -> Denies the toggle_maximize command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-title" + "core:window:deny-toggle-maximize" ] }, { - "description": "window:allow-set-title-bar-style -> Enables the set_title_bar_style command without any pre-configured scope.", + "description": "core:window:deny-unmaximize -> Denies the unmaximize command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-title-bar-style" + "core:window:deny-unmaximize" ] }, { - "description": "window:allow-set-visible-on-all-workspaces -> Enables the set_visible_on_all_workspaces command without any pre-configured scope.", + "description": "core:window:deny-unminimize -> Denies the unminimize command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-set-visible-on-all-workspaces" + "core:window:deny-unminimize" ] }, { - "description": "window:allow-show -> Enables the show command without any pre-configured scope.", + "description": "dialog:default -> This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n", "type": "string", "enum": [ - "window:allow-show" + "dialog:default" ] }, { - "description": "window:allow-start-dragging -> Enables the start_dragging command without any pre-configured scope.", + "description": "dialog:allow-ask -> Enables the ask command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-start-dragging" + "dialog:allow-ask" ] }, { - "description": "window:allow-start-resize-dragging -> Enables the start_resize_dragging command without any pre-configured scope.", + "description": "dialog:allow-confirm -> Enables the confirm command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-start-resize-dragging" + "dialog:allow-confirm" ] }, { - "description": "window:allow-theme -> Enables the theme command without any pre-configured scope.", + "description": "dialog:allow-message -> Enables the message command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-theme" + "dialog:allow-message" ] }, { - "description": "window:allow-title -> Enables the title command without any pre-configured scope.", + "description": "dialog:allow-open -> Enables the open command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-title" + "dialog:allow-open" ] }, { - "description": "window:allow-toggle-maximize -> Enables the toggle_maximize command without any pre-configured scope.", + "description": "dialog:allow-save -> Enables the save command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-toggle-maximize" + "dialog:allow-save" ] }, { - "description": "window:allow-unmaximize -> Enables the unmaximize command without any pre-configured scope.", + "description": "dialog:deny-ask -> Denies the ask command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-unmaximize" + "dialog:deny-ask" ] }, { - "description": "window:allow-unminimize -> Enables the unminimize command without any pre-configured scope.", + "description": "dialog:deny-confirm -> Denies the confirm command without any pre-configured scope.", "type": "string", "enum": [ - "window:allow-unminimize" + "dialog:deny-confirm" ] }, { - "description": "window:deny-available-monitors -> Denies the available_monitors command without any pre-configured scope.", + "description": "dialog:deny-message -> Denies the message command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-available-monitors" + "dialog:deny-message" ] }, { - "description": "window:deny-center -> Denies the center command without any pre-configured scope.", + "description": "dialog:deny-open -> Denies the open command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-center" + "dialog:deny-open" ] }, { - "description": "window:deny-close -> Denies the close command without any pre-configured scope.", + "description": "dialog:deny-save -> Denies the save command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-close" + "dialog:deny-save" ] }, { - "description": "window:deny-create -> Denies the create command without any pre-configured scope.", + "description": "notification:default -> This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n", "type": "string", "enum": [ - "window:deny-create" + "notification:default" ] }, { - "description": "window:deny-current-monitor -> Denies the current_monitor command without any pre-configured scope.", + "description": "notification:allow-batch -> Enables the batch command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-current-monitor" + "notification:allow-batch" ] }, { - "description": "window:deny-cursor-position -> Denies the cursor_position command without any pre-configured scope.", + "description": "notification:allow-cancel -> Enables the cancel command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-cursor-position" + "notification:allow-cancel" ] }, { - "description": "window:deny-destroy -> Denies the destroy command without any pre-configured scope.", + "description": "notification:allow-check-permissions -> Enables the check_permissions command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-destroy" + "notification:allow-check-permissions" ] }, { - "description": "window:deny-hide -> Denies the hide command without any pre-configured scope.", + "description": "notification:allow-create-channel -> Enables the create_channel command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-hide" + "notification:allow-create-channel" ] }, { - "description": "window:deny-inner-position -> Denies the inner_position command without any pre-configured scope.", + "description": "notification:allow-delete-channel -> Enables the delete_channel command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-inner-position" + "notification:allow-delete-channel" ] }, { - "description": "window:deny-inner-size -> Denies the inner_size command without any pre-configured scope.", + "description": "notification:allow-get-active -> Enables the get_active command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-inner-size" + "notification:allow-get-active" ] }, { - "description": "window:deny-internal-toggle-maximize -> Denies the internal_toggle_maximize command without any pre-configured scope.", + "description": "notification:allow-get-pending -> Enables the get_pending command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-internal-toggle-maximize" + "notification:allow-get-pending" ] }, { - "description": "window:deny-is-closable -> Denies the is_closable command without any pre-configured scope.", + "description": "notification:allow-is-permission-granted -> Enables the is_permission_granted command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-closable" + "notification:allow-is-permission-granted" ] }, { - "description": "window:deny-is-decorated -> Denies the is_decorated command without any pre-configured scope.", + "description": "notification:allow-list-channels -> Enables the list_channels command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-decorated" + "notification:allow-list-channels" ] }, { - "description": "window:deny-is-focused -> Denies the is_focused command without any pre-configured scope.", + "description": "notification:allow-notify -> Enables the notify command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-focused" + "notification:allow-notify" ] }, { - "description": "window:deny-is-fullscreen -> Denies the is_fullscreen command without any pre-configured scope.", + "description": "notification:allow-permission-state -> Enables the permission_state command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-fullscreen" + "notification:allow-permission-state" ] }, { - "description": "window:deny-is-maximizable -> Denies the is_maximizable command without any pre-configured scope.", + "description": "notification:allow-register-action-types -> Enables the register_action_types command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-maximizable" + "notification:allow-register-action-types" ] }, { - "description": "window:deny-is-maximized -> Denies the is_maximized command without any pre-configured scope.", + "description": "notification:allow-register-listener -> Enables the register_listener command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-maximized" + "notification:allow-register-listener" ] }, { - "description": "window:deny-is-minimizable -> Denies the is_minimizable command without any pre-configured scope.", + "description": "notification:allow-remove-active -> Enables the remove_active command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-minimizable" + "notification:allow-remove-active" ] }, { - "description": "window:deny-is-minimized -> Denies the is_minimized command without any pre-configured scope.", + "description": "notification:allow-request-permission -> Enables the request_permission command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-minimized" + "notification:allow-request-permission" ] }, { - "description": "window:deny-is-resizable -> Denies the is_resizable command without any pre-configured scope.", + "description": "notification:allow-show -> Enables the show command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-resizable" + "notification:allow-show" ] }, { - "description": "window:deny-is-visible -> Denies the is_visible command without any pre-configured scope.", + "description": "notification:deny-batch -> Denies the batch command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-is-visible" + "notification:deny-batch" ] }, { - "description": "window:deny-maximize -> Denies the maximize command without any pre-configured scope.", + "description": "notification:deny-cancel -> Denies the cancel command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-maximize" + "notification:deny-cancel" ] }, { - "description": "window:deny-minimize -> Denies the minimize command without any pre-configured scope.", + "description": "notification:deny-check-permissions -> Denies the check_permissions command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-minimize" + "notification:deny-check-permissions" ] }, { - "description": "window:deny-monitor-from-point -> Denies the monitor_from_point command without any pre-configured scope.", + "description": "notification:deny-create-channel -> Denies the create_channel command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-monitor-from-point" + "notification:deny-create-channel" ] }, { - "description": "window:deny-outer-position -> Denies the outer_position command without any pre-configured scope.", + "description": "notification:deny-delete-channel -> Denies the delete_channel command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-outer-position" + "notification:deny-delete-channel" ] }, { - "description": "window:deny-outer-size -> Denies the outer_size command without any pre-configured scope.", + "description": "notification:deny-get-active -> Denies the get_active command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-outer-size" + "notification:deny-get-active" ] }, { - "description": "window:deny-primary-monitor -> Denies the primary_monitor command without any pre-configured scope.", + "description": "notification:deny-get-pending -> Denies the get_pending command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-primary-monitor" + "notification:deny-get-pending" ] }, { - "description": "window:deny-request-user-attention -> Denies the request_user_attention command without any pre-configured scope.", + "description": "notification:deny-is-permission-granted -> Denies the is_permission_granted command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-request-user-attention" + "notification:deny-is-permission-granted" ] }, { - "description": "window:deny-scale-factor -> Denies the scale_factor command without any pre-configured scope.", + "description": "notification:deny-list-channels -> Denies the list_channels command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-scale-factor" + "notification:deny-list-channels" ] }, { - "description": "window:deny-set-always-on-bottom -> Denies the set_always_on_bottom command without any pre-configured scope.", + "description": "notification:deny-notify -> Denies the notify command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-always-on-bottom" + "notification:deny-notify" ] }, { - "description": "window:deny-set-always-on-top -> Denies the set_always_on_top command without any pre-configured scope.", + "description": "notification:deny-permission-state -> Denies the permission_state command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-always-on-top" + "notification:deny-permission-state" ] }, { - "description": "window:deny-set-closable -> Denies the set_closable command without any pre-configured scope.", + "description": "notification:deny-register-action-types -> Denies the register_action_types command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-closable" + "notification:deny-register-action-types" ] }, { - "description": "window:deny-set-content-protected -> Denies the set_content_protected command without any pre-configured scope.", + "description": "notification:deny-register-listener -> Denies the register_listener command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-content-protected" + "notification:deny-register-listener" ] }, { - "description": "window:deny-set-cursor-grab -> Denies the set_cursor_grab command without any pre-configured scope.", + "description": "notification:deny-remove-active -> Denies the remove_active command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-cursor-grab" + "notification:deny-remove-active" ] }, { - "description": "window:deny-set-cursor-icon -> Denies the set_cursor_icon command without any pre-configured scope.", + "description": "notification:deny-request-permission -> Denies the request_permission command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-cursor-icon" + "notification:deny-request-permission" ] }, { - "description": "window:deny-set-cursor-position -> Denies the set_cursor_position command without any pre-configured scope.", + "description": "notification:deny-show -> Denies the show command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-cursor-position" + "notification:deny-show" ] }, { - "description": "window:deny-set-cursor-visible -> Denies the set_cursor_visible command without any pre-configured scope.", + "description": "process:default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n", "type": "string", "enum": [ - "window:deny-set-cursor-visible" + "process:default" ] }, { - "description": "window:deny-set-decorations -> Denies the set_decorations command without any pre-configured scope.", + "description": "process:allow-exit -> Enables the exit command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-decorations" + "process:allow-exit" ] }, { - "description": "window:deny-set-effects -> Denies the set_effects command without any pre-configured scope.", + "description": "process:allow-restart -> Enables the restart command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-effects" + "process:allow-restart" ] }, { - "description": "window:deny-set-focus -> Denies the set_focus command without any pre-configured scope.", + "description": "process:deny-exit -> Denies the exit command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-focus" + "process:deny-exit" ] }, { - "description": "window:deny-set-fullscreen -> Denies the set_fullscreen command without any pre-configured scope.", + "description": "process:deny-restart -> Denies the restart command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-fullscreen" + "process:deny-restart" ] }, { - "description": "window:deny-set-icon -> Denies the set_icon command without any pre-configured scope.", + "description": "store:default -> This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n", "type": "string", "enum": [ - "window:deny-set-icon" + "store:default" ] }, { - "description": "window:deny-set-ignore-cursor-events -> Denies the set_ignore_cursor_events command without any pre-configured scope.", + "description": "store:allow-clear -> Enables the clear command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-ignore-cursor-events" + "store:allow-clear" ] }, { - "description": "window:deny-set-max-size -> Denies the set_max_size command without any pre-configured scope.", + "description": "store:allow-delete -> Enables the delete command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-max-size" + "store:allow-delete" ] }, { - "description": "window:deny-set-maximizable -> Denies the set_maximizable command without any pre-configured scope.", + "description": "store:allow-entries -> Enables the entries command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-maximizable" + "store:allow-entries" ] }, { - "description": "window:deny-set-min-size -> Denies the set_min_size command without any pre-configured scope.", + "description": "store:allow-get -> Enables the get command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-min-size" + "store:allow-get" ] }, { - "description": "window:deny-set-minimizable -> Denies the set_minimizable command without any pre-configured scope.", + "description": "store:allow-has -> Enables the has command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-minimizable" + "store:allow-has" ] }, { - "description": "window:deny-set-position -> Denies the set_position command without any pre-configured scope.", + "description": "store:allow-keys -> Enables the keys command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-position" + "store:allow-keys" ] }, { - "description": "window:deny-set-progress-bar -> Denies the set_progress_bar command without any pre-configured scope.", + "description": "store:allow-length -> Enables the length command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-progress-bar" + "store:allow-length" ] }, { - "description": "window:deny-set-resizable -> Denies the set_resizable command without any pre-configured scope.", + "description": "store:allow-load -> Enables the load command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-resizable" + "store:allow-load" ] }, { - "description": "window:deny-set-shadow -> Denies the set_shadow command without any pre-configured scope.", + "description": "store:allow-reset -> Enables the reset command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-shadow" + "store:allow-reset" ] }, { - "description": "window:deny-set-size -> Denies the set_size command without any pre-configured scope.", + "description": "store:allow-save -> Enables the save command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-size" + "store:allow-save" ] }, { - "description": "window:deny-set-skip-taskbar -> Denies the set_skip_taskbar command without any pre-configured scope.", + "description": "store:allow-set -> Enables the set command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-skip-taskbar" + "store:allow-set" ] }, { - "description": "window:deny-set-title -> Denies the set_title command without any pre-configured scope.", + "description": "store:allow-values -> Enables the values command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-title" + "store:allow-values" ] }, { - "description": "window:deny-set-title-bar-style -> Denies the set_title_bar_style command without any pre-configured scope.", + "description": "store:deny-clear -> Denies the clear command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-title-bar-style" + "store:deny-clear" ] }, { - "description": "window:deny-set-visible-on-all-workspaces -> Denies the set_visible_on_all_workspaces command without any pre-configured scope.", + "description": "store:deny-delete -> Denies the delete command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-set-visible-on-all-workspaces" + "store:deny-delete" ] }, { - "description": "window:deny-show -> Denies the show command without any pre-configured scope.", + "description": "store:deny-entries -> Denies the entries command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-show" + "store:deny-entries" ] }, { - "description": "window:deny-start-dragging -> Denies the start_dragging command without any pre-configured scope.", + "description": "store:deny-get -> Denies the get command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-start-dragging" + "store:deny-get" ] }, { - "description": "window:deny-start-resize-dragging -> Denies the start_resize_dragging command without any pre-configured scope.", + "description": "store:deny-has -> Denies the has command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-start-resize-dragging" + "store:deny-has" ] }, { - "description": "window:deny-theme -> Denies the theme command without any pre-configured scope.", + "description": "store:deny-keys -> Denies the keys command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-theme" + "store:deny-keys" ] }, { - "description": "window:deny-title -> Denies the title command without any pre-configured scope.", + "description": "store:deny-length -> Denies the length command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-title" + "store:deny-length" ] }, { - "description": "window:deny-toggle-maximize -> Denies the toggle_maximize command without any pre-configured scope.", + "description": "store:deny-load -> Denies the load command without any pre-configured scope.", + "type": "string", + "enum": [ + "store:deny-load" + ] + }, + { + "description": "store:deny-reset -> Denies the reset command without any pre-configured scope.", + "type": "string", + "enum": [ + "store:deny-reset" + ] + }, + { + "description": "store:deny-save -> Denies the save command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-toggle-maximize" + "store:deny-save" ] }, { - "description": "window:deny-unmaximize -> Denies the unmaximize command without any pre-configured scope.", + "description": "store:deny-set -> Denies the set command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-unmaximize" + "store:deny-set" ] }, { - "description": "window:deny-unminimize -> Denies the unminimize command without any pre-configured scope.", + "description": "store:deny-values -> Denies the values command without any pre-configured scope.", "type": "string", "enum": [ - "window:deny-unminimize" + "store:deny-values" ] } ] diff --git a/app/main/src-tauri/src/cmds/mod.rs b/app/main/src-tauri/src/cmds/mod.rs index 0e21df6..10be5b5 100644 --- a/app/main/src-tauri/src/cmds/mod.rs +++ b/app/main/src-tauri/src/cmds/mod.rs @@ -6,8 +6,6 @@ mod discovery; pub use discovery::*; mod get_hostname; pub use get_hostname::*; -mod open_url; -pub use open_url::*; mod send_payload; pub use send_payload::*; mod send_to_rs; diff --git a/app/main/src-tauri/src/cmds/open_url.rs b/app/main/src-tauri/src/cmds/open_url.rs deleted file mode 100644 index 97a0fa9..0000000 --- a/app/main/src-tauri/src/cmds/open_url.rs +++ /dev/null @@ -1,17 +0,0 @@ -#[tauri::command] -pub fn open_url(message: String) -> Result<(), String> { - info!("open_url: {:?}", &message); - - match open::that_detached(message) { - Ok(_) => { - trace!("open_url: success"); - - Ok(()) - } - Err(e) => { - error!("open_url error: {}", e); - - Err(format!("Coudln't open: {}", e)) - } - } -} diff --git a/app/main/src-tauri/src/main.rs b/app/main/src-tauri/src/main.rs index ed20c50..9c24c8e 100644 --- a/app/main/src-tauri/src/main.rs +++ b/app/main/src-tauri/src/main.rs @@ -64,7 +64,6 @@ async fn main() -> Result<(), anyhow::Error> { cmds::start_discovery, cmds::stop_discovery, cmds::get_hostname, - cmds::open_url, cmds::send_payload, cmds::send_to_rs, ]) diff --git a/app/main/src-tauri/tauri.conf.json b/app/main/src-tauri/tauri.conf.json index d859323..c957f8e 100644 --- a/app/main/src-tauri/tauri.conf.json +++ b/app/main/src-tauri/tauri.conf.json @@ -41,7 +41,11 @@ }, "productName": "RQuickShare", "identifier": "dev.mandre.rquickshare", - "plugins": {}, + "plugins": { + "shell": { + "open": ".*" + } + }, "app": { "windows": [ { diff --git a/app/main/src/components/HomePage.vue b/app/main/src/components/HomePage.vue index 9c35df4..c1c12ae 100644 --- a/app/main/src/components/HomePage.vue +++ b/app/main/src/components/HomePage.vue @@ -359,7 +359,8 @@ import { getCurrentWindow } from '@tauri-apps/api/window'; import { Store } from "@tauri-apps/plugin-store"; import { isPermissionGranted, requestPermission } from '@tauri-apps/plugin-notification'; import { disable, enable } from '@tauri-apps/plugin-autostart'; -import { open } from '@tauri-apps/plugin-dialog'; +import { open as dialog } from '@tauri-apps/plugin-dialog'; +import { open } from '@tauri-apps/plugin-shell'; import { ChannelMessage } from '@martichou/core_lib/bindings/ChannelMessage'; import { EndpointInfo } from '@martichou/core_lib/dist/EndpointInfo'; @@ -547,7 +548,7 @@ export default { methods: { openFilePicker: function() { - open({ + dialog({ title: "Select a file to send", directory: false, multiple: true, @@ -564,7 +565,7 @@ export default { }) }, openDownloadPicker: function() { - open({ + dialog({ title: "Select the destination for files", directory: true, multiple: false, @@ -578,7 +579,7 @@ export default { }, openUrl: async function(url: string) { try { - await invoke('open_url', { message: url }); + await open(url); } catch (e) { this.toastStore.addToast("Error opening URL, it may not be a valid URI", ToastType.Error); console.error("Error opening URL", e);