#Shell scope of relative .exe file

4 messages · Page 1 of 1 (latest)

short pagoda
#

Hey,
I'm trying to run a program that I have placed in the root directory of my app with the shell command but i'm getting
Uncaught (in promise) program not allowed on the configured shell scope:

To run the command i'm using

  `../slippc.exe -i ${dir}${filesInDir[0].name} -a -`
).execute().then(v => v.stdout);```

I have configured my scope like so.
```"shell": {
        "all": true,
        "open": true,
        "scope": [
          {
        "name": "../slippc.exe",
        "cmd": "../slippc.exe",
        "args": true
        }
      ]
      },```

I wonder if the issue is because of the .exe not being a global shell command? in my research I have only seen the shell command being used with global commands in the shell.
remote star
#

You may run it directly using rust

#

And get the result via tauri command

winged sparrow
#

or try splitting the command into command and args like this maybe ```ts
new Command('../slippc.exe',
['-i', ${dir}${filesInDir[0].name}, '-a', '-']
).execute().then(v => v.stdout);