diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-25 23:49:56 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-25 23:49:56 +0200 |
commit | 771925076fe7695e198b4c4279707ca4b028cebf (patch) | |
tree | ca10422e8fd7c4f22ed6c52e4457110540554b4d /src/utils.c | |
parent | c00d3d13b07ed6fa60ac975c2e633e2e5a3cbee3 (diff) | |
download | ayatana-indicator-session-771925076fe7695e198b4c4279707ca4b028cebf.tar.gz ayatana-indicator-session-771925076fe7695e198b4c4279707ca4b028cebf.tar.bz2 ayatana-indicator-session-771925076fe7695e198b4c4279707ca4b028cebf.zip |
Add 'Report a bug...' item to the session menu.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index c291f7c..e950d3b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -155,6 +155,24 @@ get_distro_url (void) } const char* +get_distro_bts_url (void) +{ + static char * distro_bts_url = NULL; + + if (distro_bts_url == NULL) + { + GHashTable * os_release = get_os_release(); + gpointer value = g_hash_table_lookup(os_release, "BUG_REPORT_URL"); + if (value == NULL) + value = "https://github.com/AyatanaIndicators/ayatana-indicator-session/issues"; /* fallback value */ + distro_bts_url = g_strdup(value); + g_hash_table_destroy(os_release); + } + + return distro_bts_url; +} + +const char* get_desktop_name (void) { static char * desktop_name = NULL; |