Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

get_battery produces errors in -v #2129

Open

Description

@RichardBronosky

Description

Calling neofetch -v shows No such file or directory for 2 of these 3 values because a system wil [likely] only have 1 of the 3:
BAT, axp288_fuel_gauge, CMB
You can recreate this on a Linux laptop via:

filename="/tmp/bug"
neofetch -v --config none --print_config | sed -E 's/# (info .* battery$)/\1/' > "$filename"
neofetch -v --config "$filename"

Neofetch version

$ neofetch --version
Neofetch 7.1.0

$ git log -n1
commit ccd5d9f52609bbdcd5d8fa78c4fdb0f12954125f
Merge: 644f9d29 3eaac2d9
Author: Dylan Araps <[email protected]>
Date:   Fri Dec 10 08:41:55 2021 +0200

    Merge branch 'master' of github.com:dylanaraps/neofetch

Config file

https://gist.github.com/RichardBronosky/a5207af7702fb6b0c92b0a12c2bcb98e#file-neofetch-conf

Verbose log

https://gist.github.com/RichardBronosky/a5207af7702fb6b0c92b0a12c2bcb98e#file-neofetchlog-bug

Activity

  1. added a commit that references this issue on Jan 31, 2026
    50e9a58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions