Look for the distro name in /etc/os-release and /usr/lib/os-release instead of relying on the external lsb-release tool, which may not be installed on the system (it is not in Arch by default). The lsb-release method is kept as a fallback.
Details
Details
- Reviewers
apol - Commits
- R134:2f4f9a48fcb8: Query os-release for distro name
Distro name is displayed correctly in the sources list in Arch Linux without lsb-release installed
Diff Detail
Diff Detail
- Repository
- R134 Discover Software Store
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Works for me.
Maybe use PRETTY_NAME? It's supposed to be prettier and it's used to display after all.
Comment Actions
According to https://www.freedesktop.org/software/systemd/man/os-release.html both NAME and PRETTY_NAME should be suitable for presentation to the user, the difference being that PRETTY_NAME may contain the distro version and codename. IMO NAME fits better here, but I don't mind changing it if you'd rather use PRETTY_NAME.