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

neofetch: Priorize /etc/os-release #2067

Closed
wants to merge 1 commit into from
Closed

neofetch: Priorize /etc/os-release #2067

wants to merge 1 commit into from

Conversation

omasanori
Copy link

@omasanori omasanori commented Mar 9, 2022

Description

From os-release(5):

The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if it is missing. Applications should not read data from both files at the same time.

This PR aligns the behavior with the specification.

From os-release(5):
> The file /etc/os-release takes precedence over /usr/lib/os-release.
> Applications should check for the former, and exclusively use its
> data if it exists, and only fall back to /usr/lib/os-release if it
> is missing. Applications should not read data from both files at the
> same time.

Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Jul 31, 2022
…c/os-release

Upstream PR: dylanaraps/neofetch#2067
Thanks to @omasanori

Co-authored-by: Masanori Ogino <masanori.ogino@gmail.com>
@hykilpikonna
Copy link

Thank you for your contribution!

This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.

Read the "Running Updated Original Neofetch" section for more info!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants