[gnome-software/wip/rancell/ubuntu-3-20-rebase: 50/62] Launch software-properties-gtk in place of the sources dialog
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-rebase: 50/62] Launch software-properties-gtk in place of the sources dialog
- Date: Sat, 17 Jun 2017 10:03:08 +0000 (UTC)
commit 9706788b48c5d1709c7c1ef1614039b3887f5dc3
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 | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index e605ce0..e226c0e 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -882,6 +882,9 @@ gs_shell_show_sources (GsShell *shell)
GsShellPrivate *priv = gs_shell_get_instance_private (shell);
GtkWidget *dialog;
+ 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]