[gnome-software/gnome-3-20] Launch software-properties-gtk in place of the sources dialog



commit 1f0f2e99da0843da6980ab4786b04cb8757d5b8f
Author: William Hua <william hua canonical com>
Date:   Tue Mar 1 13:46:56 2016 -0500

    Launch software-properties-gtk in place of the sources dialog
    
    https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1551702

 src/gs-shell.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 5468c5d..5f92ba0 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -863,6 +863,10 @@ gs_shell_show_sources (GsShell *shell)
        GsShellPrivate *priv = gs_shell_get_instance_private (shell);
        GtkWidget *dialog;
 
+       /* use if available */
+       if (g_spawn_command_line_async ("software-properties-gtk", NULL))
+               return;
+
        dialog = gs_sources_dialog_new (priv->main_window, priv->plugin_loader);
        gs_shell_modal_dialog_present (shell, GTK_DIALOG (dialog));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]