diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index 1175797..406cafa 100644 --- a/src/utils.c +++ b/src/utils.c @@ -144,9 +144,18 @@ get_distro_url (void) if (distro_url == NULL) { GHashTable * os_release = get_os_release(); - gpointer value = g_hash_table_lookup(os_release, "HOME_URL"); + gpointer value = g_hash_table_lookup(os_release, "SUPPORT_URL"); + if (value == NULL) - value = "https://www.gnu.org"; /* fallback value */ + { + value = g_hash_table_lookup(os_release, "HOME_URL"); + + if (value == NULL) + { + value = "https://www.gnu.org"; /* fallback value */ + } + } + distro_url = g_strdup(value); g_hash_table_destroy(os_release); } |