Use /etc/os-release for distro & version info
The README says:
You can customize the distribution name, version and the displayed icon using the config options
-Ddistro_name=Fedora -Ddistro_version=3.32 -Ddistro_icon_name=fedora-logo
All of this information is available in /etc/os-release
, namely NAME
, VERSION
and LOGO
keys. GLib 2.63.1 and newer have API for this: https://tecnocode.co.uk/2019/11/01/g_get_os_info-and-glib-2-63-1/
(Actually Endless currently doesn't have LOGO
but this would be a great incentive!)