Try to rely less on hardcoded paths
This commit is contained in:
+9
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user