[gnome-software] Make the nonfree software target URI configurable
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Make the nonfree software target URI configurable
- Date: Mon, 29 Aug 2016 20:45:04 +0000 (UTC)
commit bdd13f73a0e4292a9a8002aad4573fb804d614d4
Author: Richard Hughes <richard hughsie com>
Date: Mon Aug 29 11:31:41 2016 +0100
Make the nonfree software target URI configurable
data/org.gnome.software.gschema.xml | 4 ++++
src/gs-shell-details.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/data/org.gnome.software.gschema.xml b/data/org.gnome.software.gschema.xml
index 725159e..0677bc9 100644
--- a/data/org.gnome.software.gschema.xml
+++ b/data/org.gnome.software.gschema.xml
@@ -90,5 +90,9 @@
<default>true</default>
<summary>Show some UI elements informing the user that an app is non-free</summary>
</key>
+ <key name="nonfree-software-uri" type="s">
+ <default>'https://en.wikipedia.org/wiki/Proprietary_software'</default>
+ <summary>The URI that explains nonfree and proprietary software</summary>
+ </key>
</schema>
</schemalist>
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index a489945..f7f8e0c 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -1808,7 +1808,8 @@ static void
gs_shell_details_license_nonfree_cb (GtkWidget *widget, GsShellDetails *self)
{
g_autofree gchar *str = NULL;
- const gchar *uri = "https://en.wikipedia.org/wiki/Proprietary_software";
+ g_autofree gchar *uri = NULL;
+ uri = g_settings_get_string (self->settings, "nonfree-software-uri");
str = g_strdup_printf ("<a href=\"%s\">%s</a>",
uri,
_("More information"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]