jdx/mise · error
flatpak list failed: {}
Error message
flatpak list failed: {} What it means
Process failure in the flatpak package manager's installed(): `flatpak list --columns=application,version` exited non-zero and its stderr is surfaced in the error. Fires when flatpak is broken, the user lacks permission, or the flatpak installation is corrupted.
Source
Thrown at src/system/packages/flatpak.rs:138
false
}
async fn installed(&self, pkgs: &[PackageRequest]) -> Result<Vec<PackageStatus>> {
if pkgs.is_empty() {
return Ok(vec![]);
}
let args = ["list", self.scope_arg(), "--columns=application,version"];
debug!("$ flatpak {}", args.join(" "));
let output = tokio::process::Command::new("flatpak")
.args(args)
.stdin(Stdio::null())
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.output()
.await?;
if !output.status.success() {
let stderr = String::from_utf8_lossy(&output.stderr);
bail!("flatpak list failed: {}", stderr.trim());
}
Ok(parse_flatpak_list(
&String::from_utf8_lossy(&output.stdout),
pkgs,
))
}
async fn install(&self, pkgs: &[PackageRequest], opts: &InstallOpts) -> Result<()> {
if let Some(pkg) = pkgs.iter().find(|pkg| pkg.version.is_some()) {
bail!("flatpak cannot install a pinned version ('{pkg}')");
}
let mut args = vec![
"install".to_string(),
self.scope_arg().to_string(),
"--noninteractive".to_string(),
];
args.extend(pkgs.iter().map(|pkg| pkg.name.clone()));
if opts.dry_run {View on GitHub (pinned to afd2eddd3a)
Solutions
- Run `flatpak list --app` manually to see the underlying error
- Verify flatpak is installed and the user has remote/permission access
- Repair flatpak (e.g. `flatpak repair`) or fix the remote, then retry
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/system/packages/flatpak.rs:138 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@afd2eddd3a (2026-09-09).
Data as JSON: /api/errors/781c3a8a8a80ac83.
Report an issue: GitHub.