elementary / switchboard-plug-security-privacy

Switchboard Security & Privacy Plug
GNU General Public License v3.0
13 stars 14 forks source link

TrackPanel: display correct OS name #136

Closed bobby285271 closed 2 years ago

bobby285271 commented 2 years ago

In NixOS, we have the following /etc/os-release, the NAME field is not in line 1:

BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="22.05.20220514.43ff6cb"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 22.05 (Quokka)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="22.05 (Quokka)"
VERSION_CODENAME=quokka
VERSION_ID="22.05"

Before:

After:

tintou commented 2 years ago

Thanks for this, the previous code was ugly ^^'