Add support for different modes based on argv[0]

This commit is contained in:
2021-06-16 19:48:13 +02:00
parent 8b89243a4a
commit 9708146d81
5 changed files with 21 additions and 12 deletions
-1
View File
@@ -14,5 +14,4 @@ proc addMount*(call: var BwrapCall, mType: string, path: string): var BwrapCall
call
proc exec*(call: var BwrapCall) =
echo call.args
discard execv("/usr/bin/bwrap", allocCStringArray(@["bwrap"].concat(call.args)))