Force Linux venv onto OS Python so apt _gi loads #3

Merged
rhino merged 2 commits from cursor/linux-system-python-gi-b26a into main 2026-07-25 05:59:06 +00:00
Showing only changes of commit 0e0a2c5e62 - Show all commits

View File

@@ -30,10 +30,11 @@ Select with `--backend com|ooxml` (CLI) or the Backend dropdown (web UI).
GTK/WebKit packages (`python3-gi`, `gir1.2-gtk-3.0`, `gir1.2-webkit2-4.1` via apt) —
not installable with `uv`. Prefer `./desktop/setup_linux.sh`, which recreates
`.venv` with **OS** `/usr/bin/python3` (`--no-managed-python --system-site-packages`).
A uv-managed CPython (e.g. 3.12.2 from `~/.local/share/uv/python`) cannot load
apt `_gi` even with system-site-packages. On this headless/cloud VM native mode
is often unavailable; the app falls back to the browser, or use `--no-browser`
/ `--browser`.
A uv-managed CPython (e.g. from `~/.local/share/uv/python`) cannot load apt
`_gi` even with system-site-packages. `.python-version` is `3.12` (minor pin,
not `3.12.2`) so sync can use OS `/usr/bin/python3`. On this headless/cloud VM
native mode is often unavailable; the app falls back to the browser, or use
`--no-browser` / `--browser`.
### Environment
- Prefer **uv** for all installs (`uv` in `~/.local/bin`, on PATH via `~/.bashrc`).