Attach Remote keyboard injection to approved controlled sessions
Local launch and managed startup now start the incoming-key owner for sessions installed with keyboard-inject, using one input-helper Supervisor retained for the reader lifetime. Delivery rechecks lock, XTerm handoff and internal reader UI in addition to lease, grant and deadline. build-cthulhu.sh and both Arch packages build and install cthulhu-input-helper; a missing helper leaves keyboard input unavailable without affecting startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c1333c2fdb
commit
27017bef11
13 files changed
+362
-66
No files matched your search
+4
-3
@@ -13,7 +13,7 @@ usage() {
|
||||
cat <<'EOF'
|
||||
Usage: build-cthulhu.sh [-o DIR | --output-dir DIR] [-- GO_BUILD_FLAGS...]
|
||||
|
||||
Build cthulhu and cthulhu-braille, obtaining a suitable Go toolchain if needed.
|
||||
Build cthulhu, cthulhu-braille and cthulhu-input-helper, obtaining a suitable Go toolchain if needed.
|
||||
|
||||
-o, --output-dir DIR Write both binaries to DIR (default: checkout root).
|
||||
Relative paths start at the caller's directory.
|
||||
@@ -56,7 +56,7 @@ if [[ $outputDir != /* ]]; then
|
||||
outputDir="$PWD/$outputDir"
|
||||
fi
|
||||
[[ ! -e $outputDir || -d $outputDir ]] || fail "Output directory is an existing file: $outputDir"
|
||||
for binary in cthulhu cthulhu-braille; do
|
||||
for binary in cthulhu cthulhu-braille cthulhu-input-helper; do
|
||||
[[ ! -d $outputDir/$binary ]] || fail "Binary output path is a directory: $outputDir/$binary"
|
||||
done
|
||||
cd -- "$projectDir"
|
||||
@@ -129,4 +129,5 @@ echo "Using $goVersion"
|
||||
mkdir -p -- "$outputDir"
|
||||
"$goCommand" build "${buildFlags[@]}" -o "$outputDir/cthulhu" ./cmd/cthulhu
|
||||
"$goCommand" build "${buildFlags[@]}" -tags brlapi -o "$outputDir/cthulhu-braille" ./cmd/cthulhu-braille
|
||||
echo "Cthulhu has been built: $outputDir/cthulhu and $outputDir/cthulhu-braille"
|
||||
"$goCommand" build "${buildFlags[@]}" -o "$outputDir/cthulhu-input-helper" ./cmd/cthulhu-input-helper
|
||||
echo "Cthulhu has been built: $outputDir/cthulhu, $outputDir/cthulhu-braille and $outputDir/cthulhu-input-helper"
|
||||
Reference in new issue
Block a user