Try to rely less on hardcoded paths

This commit is contained in:
2022-05-12 17:51:55 +02:00
parent 6ca24383f0
commit 71eb05c09a
8 changed files with 34 additions and 18 deletions
+9 -1
View File
@@ -69,4 +69,12 @@ proc sandboxExec*(args: Args) =
if config.allowdri.get(false):
enableDri(call)
call.addArg(args.getCmd).exec()
# resolve binary path outside of the sandbox
var cmd = args.getCmd
echo cmd
cmd[0] = findExe(cmd[0])
echo cmd
call.addArg(cmd).exec()