plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

tauri-plugin-shell :program not allowed on the configured shell scope: exec-sh

Open yuanhaotian opened this issue 9 months ago • 0 comments

src-tauri/capabilities/default.json "permissions": [ "core:default", "opener:default", "shell:default", { "identifier": "shell:allow-execute", "allow": [ { "name": "exec-sh", "cmd": "sh", "args": [ "-c", { "validator": "\S+" } ], "sidecar": false } ] } ]

js let result = await Command.create('exec-sh', [ '-c', "echo 'Hello World!'", ]).execute();

error:program not allowed on the configured shell scope: exec-sh

yuanhaotian avatar Mar 13 '25 05:03 yuanhaotian