fix: correct awww subcommand to img, support bare path arg, add --version
Some checks failed
Mirror to GitHub / mirror (push) Failing after 3s
release / build (push) Failing after 10s
Build and publish package / package (push) Failing after 1m19s

This commit is contained in:
Breadway 2026-06-17 22:44:48 +08:00
parent b064e86f2f
commit 5c9efcf316
2 changed files with 12 additions and 8 deletions

View file

@ -5,13 +5,13 @@ use anyhow::{Context, Result, bail};
pub fn apply(path: &Path) -> Result<()> {
let status = Command::new("awww")
.arg("set")
.arg("img")
.arg(path)
.status()
.context("failed to run awww — is awww-daemon running?")?;
if !status.success() {
bail!("awww set exited with {}", status);
bail!("awww img exited with {}", status);
}
Ok(())
}