wvkbd: sandbox with bunpen
This commit is contained in:
@@ -166,8 +166,14 @@ toggleKeyboard() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for p in $keyboardPid; do
|
||||||
# `env` so that we get the right `kill` binary instead of bash's builtin
|
# `env` so that we get the right `kill` binary instead of bash's builtin
|
||||||
env kill -s RTMIN+0 "$keyboardPid"
|
# `kill` only one keyboard process. in the case of e.g. sandboxing,
|
||||||
|
# the keyboard might consist of multiple processes and each one we signal would cause a toggle
|
||||||
|
if env kill -s RTMIN+0 "$p"; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
## DISPATCHERS
|
## DISPATCHERS
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
sandbox.method = "bwrap";
|
sandbox.method = "bunpen";
|
||||||
sandbox.whitelistWayland = true;
|
sandbox.whitelistWayland = true;
|
||||||
|
|
||||||
env.KEYBOARD = "wvkbd-mobintl";
|
env.KEYBOARD = "wvkbd-mobintl";
|
||||||
|
Reference in New Issue
Block a user