hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.18k stars 93 forks source link

Properly make use of the config file argument #177

Closed BKasin closed 10 months ago

BKasin commented 10 months ago

Description

Address the issue raised in #176, which is that -C was silently failing to load config files that were not in the default path. The problem was that check_config was checking that the path given in -C was a valid file, and then loading CONFIG_PATH instead, which was not being set to what was given in -C.

This behavior is shown in the attached screenshot.

Relevant Links

176

Screenshots

Before config

After config

hykilpikonna commented 10 months ago

Oops, thanks for catching this!