Linux port: first run, packaging, single instance, privacy and wiring
CI / test (push) Has been cancelled

First run and backend
- The companion opens without Ollama or a model (OFFLINE / SETUP REQUIRED),
  opens Settings > Language model and picks the model up once downloaded.
- Model, provider and GPU changes apply without restarting (Ollama is
  restarted when launch settings change); no silent fallback from API mode.
- Fatal startup errors are shown in a window; the fallback avatar loads
  again; the shipped Capri artwork is used when nothing was imported.

Packaging and tooling
- packaging/arch/PKGBUILD, capri.desktop (KWin ScreenShot2 key), icons,
  artwork under /usr/share/capri/assets, Gitea Actions CI.
- xtask: `icons` and `release-check` (no private data or credentials).

Runtime
- One instance per data folder (flock + control socket): second launch
  shows the window; capri stop / restart / toggle / status (JSON, starts
  nothing) / doctor / setup / diagnostics export / purge.
- A foreign program on the Ollama port is refused; an Ollama left behind
  by Capri is replaced.

Privacy and security
- No raw Ollama log on disk; API keys are never saved in plaintext (old
  ones move to the keyring); refused credential notes are stored as
  [Credentials omitted]; launched apps get an allow-listed environment.

Fixes
- Stop/Escape silence the voice; saved voice effects apply to replies;
  settings_control glitch settings apply; distinct KWin cursor scripts;
  KDE window capture authorized for source builds; Linux wording.
- Voice pack references zipped with Windows separators are found.

Wired features
- Initiatives, request router, resource monitor, "clip that", questions
  about a snapshot, sleep mode, tap reactions, stopwatch, attachments,
  Internet mode button, voice-synced subtitles, wake visuals, dictation
  draft, tray switches, Spotify seek/shuffle/repeat; computer-control
  planner and classifier follow model switches and API mode.
- Approval cards: one shown, 8 queued, deduplicated, cancelled on stop,
  failure, lock or pause; one Application access switch.

Desktop
- Compositor detection (no black overlay on i3 without picom), i3lock
  detection, unsupported desktops reported at startup, screenshot-only
  control without AT-SPI, fontconfig fallbacks, translatable feature
  pages with French translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5.5 committed 2026-11-12 20:15:49 +01:00
1 parent a2abf01280
commit 844435f21f
73 files changed
+4834 -517

No files matched your search

+4 -8
View File
@@ -194,8 +194,8 @@ pub fn discover(query: &str, all: &[Entry]) -> Vec<Entry> {
.collect()
}
/// Starts the entry detached: no shell, cwd `~`, new process group, stdio null, Capri and
/// Ollama variables removed. The child is reaped on a background thread.
/// Starts the entry detached: no shell, cwd `~`, new process group, stdio null, allow-listed
/// environment (spec 08 §8.5). The child is reaped on a background thread.
pub fn launch(entry: &Entry, url: Option<&str>) -> Result<()> {
let argv = exec_argv(&entry.exec, url, &entry.name, &entry.path, &entry.icon);
let (bin, args) = argv.split_first().ok_or_else(|| anyhow::anyhow!("The application could not be started."))?;
@@ -205,12 +205,8 @@ pub fn launch(entry: &Entry, url: Option<&str>) -> Result<()> {
if let Some(home) = std::env::var_os("HOME") {
cmd.current_dir(home);
}
for (k, _) in std::env::vars_os() {
let k = k.to_string_lossy().to_string();
if k.starts_with("CAPRI") || k.starts_with("OLLAMA") {
cmd.env_remove(k);
}
}
// Tokens and API keys in Capri's environment never reach the launched application.
cmd.env_clear().envs(capri_core::process::launch_environment());
std::os::unix::process::CommandExt::process_group(&mut cmd, 0);
let mut child = cmd.spawn().map_err(|_| anyhow::anyhow!("The application could not be started."))?;
std::thread::spawn(move || child.wait());