added flatpak install method
parent
16c38b3d9b
commit
fe741b862f
@ -0,0 +1,11 @@
|
|||||||
|
use std::process::Command;
|
||||||
|
|
||||||
|
|
||||||
|
pub fn flatpak(pkg:&str) {
|
||||||
|
let error = format!("Couldn't install {}", &pkg);
|
||||||
|
Command::new("flatpak")
|
||||||
|
.arg("install")
|
||||||
|
.arg(&pkg)
|
||||||
|
.status()
|
||||||
|
.expect(&error);
|
||||||
|
}
|
Loading…
Reference in New Issue