mirror of
https://github.com/prdlk/noctalia-ostt.git
synced 2026-08-02 09:31:38 +00:00
fix(recorder): add SHELL=/bin/sh to script command to prevent fish interference
This commit is contained in:
+5
-2
@@ -107,8 +107,11 @@ local function buildRecordCmd()
|
|||||||
end
|
end
|
||||||
local inner = table.concat(parts, " ")
|
local inner = table.concat(parts, " ")
|
||||||
-- pty wrapper: `script -e` propagates ostt's exit code, which the wrapper
|
-- pty wrapper: `script -e` propagates ostt's exit code, which the wrapper
|
||||||
-- persists for the monitor service to report.
|
-- persists for the monitor service to report. SHELL=/bin/sh is REQUIRED:
|
||||||
return "script -qec " .. shq(inner) .. " /dev/null >/dev/null 2>&1; echo $? > " .. shq(exitFile)
|
-- script(1) runs the command via $SHELL, and fish probes the terminal on
|
||||||
|
-- startup — those handshake bytes reach ostt's TUI as a phantom Space
|
||||||
|
-- keypress, pausing the recording instantly (zero samples captured).
|
||||||
|
return "SHELL=/bin/sh script -qec " .. shq(inner) .. " /dev/null </dev/null >/dev/null 2>&1; echo $? > " .. shq(exitFile)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function startRecording()
|
local function startRecording()
|
||||||
|
|||||||
Reference in New Issue
Block a user