summaryrefslogtreecommitdiff
path: root/quota.lua
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-05 11:13:09 -0700
committert <t@tjp.lol>2026-12-05 11:13:44 -0700
commit760cb2a9045e0c1cde276a6378841217e655fde3 (patch)
tree7afc2e9874ad47122ed09850cb0ce108dc79faae /quota.lua
parent0b5892bc31fb576099421ecddfbdc7a7b243d02d (diff)
Broaden platform support to Unix beyond macOS
Replace macOS-only underpinnings with portable Unix equivalents so the provider runs on macOS, Linux, and FreeBSD: - Replace /usr/bin/nc -U with an embedded panto lua + luv stdio-to-socket relay everywhere. - Conditionalize /usr/bin/codesign to macOS; validate binary ownership and permissions on other Unix platforms. - Forward D-Bus/XDG keyring session variables on non-macOS while keeping API keys stripped. - Use uv.os_tmpdir() (with /tmp fallback for Unix socket sun_path limits) instead of hardcoded /tmp and /private/tmp. - Drop --sandbox from agy invocations to match Panto's permissions model and avoid container/Linuxulator sandbox breakage. - Update check.lua for non-macOS runners (unshare / direct) and broaden supported_platforms to unix.
Diffstat (limited to 'quota.lua')
-rw-r--r--quota.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/quota.lua b/quota.lua
index 7b32a55..8c8e04e 100644
--- a/quota.lua
+++ b/quota.lua
@@ -133,7 +133,7 @@ function M.activate(ext, footer, acp)
-- Detached (no controlling tty) + closed input. The CLI's
-- print-mode auth path returns without interactive login in this case.
req.child, req.pid = uv.spawn(bin, {
- args = {'--gemini_dir', profile, '--sandbox', '-p', '/usage'},
+ args = {'--gemini_dir', profile, '-p', '/usage'},
cwd = profile, env = env, detached = true, stdio = {nil, req.stdout, nil},
}, function(code, sig)
close(req.child); req.child, req.pid = nil, nil