gutils: Add g_get_os_info()

Add a new function that gets OS information for /etc/os-release.
This commit is contained in:
Robert Ancell
2019-08-27 10:50:35 +03:00
parent 6192fd4cc0
commit 349318e8db
4 changed files with 240 additions and 0 deletions

View File

@@ -2086,6 +2086,20 @@ g_get_user_special_dir
g_get_system_data_dirs
g_get_system_config_dirs
g_reload_user_special_dirs_cache
g_get_os_info
<SUBSECTION>
G_OS_INFO_KEY_NAME
G_OS_INFO_KEY_PRETTY_NAME
G_OS_INFO_KEY_VERSION
G_OS_INFO_KEY_VERSION_CODENAME
G_OS_INFO_KEY_VERSION_ID
G_OS_INFO_KEY_ID
G_OS_INFO_KEY_HOME_URL
G_OS_INFO_KEY_DOCUMENTATION_URL
G_OS_INFO_KEY_SUPPORT_URL
G_OS_INFO_KEY_BUG_REPORT_URL
G_OS_INFO_KEY_PRIVACY_POLICY_URL
<SUBSECTION>
g_get_host_name