[F] Fix #418
This commit is contained in:
parent
aee058e591
commit
0c9e4db742
1 changed files with 2 additions and 5 deletions
|
|
@ -486,16 +486,13 @@ pub fn get_distro_name(backend: Backend) -> Result<String> {
|
||||||
match backend {
|
match backend {
|
||||||
Backend::Neofetch => run_neofetch_command_piped(&["ascii_distro_name"])
|
Backend::Neofetch => run_neofetch_command_piped(&["ascii_distro_name"])
|
||||||
.context("failed to get distro name from neofetch"),
|
.context("failed to get distro name from neofetch"),
|
||||||
Backend::Fastfetch => run_fastfetch_command_piped(&[
|
Backend::Fastfetch => Ok(run_fastfetch_command_piped(&[
|
||||||
"--logo",
|
"--logo",
|
||||||
"none",
|
"none",
|
||||||
"-s",
|
"-s",
|
||||||
"OS",
|
"OS",
|
||||||
"--disable-linewrap",
|
"--disable-linewrap",
|
||||||
"--os-key",
|
]).context("failed to get distro name from fastfetch")?.replace("OS: ", "")),
|
||||||
" ",
|
|
||||||
])
|
|
||||||
.context("failed to get distro name from fastfetch"),
|
|
||||||
#[cfg(feature = "macchina")]
|
#[cfg(feature = "macchina")]
|
||||||
Backend::Macchina => {
|
Backend::Macchina => {
|
||||||
// Write ascii art to temp file
|
// Write ascii art to temp file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue