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
+2 -1
View File
@@ -1,3 +1,4 @@
import os
import posix
import sequtils
@@ -14,4 +15,4 @@ proc addMount*(call: var BwrapCall, mType: string, path: string): var BwrapCall
call
proc exec*(call: var BwrapCall) =
discard execv("/usr/bin/bwrap", allocCStringArray(@["bwrap"].concat(call.args)))
discard execv("/usr/bin/env", allocCStringArray(@["/usr/bin/env", "bwrap"].concat(call.args)))