1
0
Dominique Leuenberger 2019-11-27 14:36:37 +00:00 committed by Git OBS Bridge
parent 4cb98b4996
commit 77bd6a2eab
3 changed files with 66 additions and 1 deletions

View File

@ -0,0 +1,43 @@
Index: gnome-software-3.34.2/src/gs-application.c
===================================================================
--- gnome-software-3.34.2.orig/src/gs-application.c
+++ gnome-software-3.34.2/src/gs-application.c
@@ -511,20 +511,34 @@ set_mode_activated (GSimpleAction *actio
GsApplication *app = GS_APPLICATION (data);
const gchar *mode;
- gs_application_present_window (app, NULL);
-
- gs_shell_reset_state (app->shell);
-
mode = g_variant_get_string (parameter, NULL);
if (g_strcmp0 (mode, "updates") == 0) {
+ gboolean ret;
+ GError *error = NULL;
+
+ ret = g_spawn_command_line_async (BINDIR "/gpk-update-viewer",
+ &error);
+ if (!ret) {
+ g_warning ("Failure launching update viewer: %s",
+ error->message);
+ g_error_free (error);
+ }
gs_shell_set_mode (app->shell, GS_SHELL_MODE_UPDATES);
} else if (g_strcmp0 (mode, "installed") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_INSTALLED);
} else if (g_strcmp0 (mode, "moderate") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_MODERATE);
} else if (g_strcmp0 (mode, "overview") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_OVERVIEW);
} else if (g_strcmp0 (mode, "updated") == 0) {
+ gs_application_present_window (app, NULL);
+ gs_shell_reset_state (app->shell);
gs_shell_set_mode (app->shell, GS_SHELL_MODE_UPDATES);
gs_shell_show_installed_updates (app->shell);
} else {

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 27 10:22:33 UTC 2019 - Yifan Jiang <yfjiang@suse.com>
- Rebase gnome-software-launch-gpk-update-viewer-for-updates.patch
-------------------------------------------------------------------
Mon Nov 25 10:18:26 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
@ -466,6 +471,12 @@ Fri Apr 20 11:53:57 UTC 2018 - lnussel@suse.de
- require fwupd, gnome-software doesn't work without (boo#1090042)
-------------------------------------------------------------------
Thu Apr 19 08:56:34 UTC 2018 - sckang@suse.com
- Mark gnome-software-launch-gpk-update-viewer-for-updates.patch
as PATCH-FIX-OPENSUSE, as Leap 15 need it as well (boo#1090042).
-------------------------------------------------------------------
Mon Apr 9 21:59:29 UTC 2018 - bjorn.lie@gmail.com
@ -507,6 +518,13 @@ Tue Mar 13 08:06:25 UTC 2018 - dimstar@opensuse.org
+ snap: Launch command line snaps with 'snap run'.
+ Updated translations.
-------------------------------------------------------------------
Tue Mar 13 02:47:18 UTC 2018 - sckang@suse.com
- Add gnome-software-launch-gpk-update-viewer-for-updates.patch:
Don't launch gnome-software when clicking the updates
notification. Launch gpk-update-viewer instead (bsc#1077332).
-------------------------------------------------------------------
Tue Mar 6 03:27:52 UTC 2018 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package gnome-software
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,10 @@ License: GPL-2.0-or-later
Group: System/GUI/GNOME
URL: https://wiki.gnome.org/Apps/Software
Source0: https://download.gnome.org/sources/gnome-software/3.34/%{name}-%{version}.tar.xz
%if 0%{?sle_version}
# PATCH-FIX-OPENSUSE gnome-software-launch-gpk-update-viewer-for-updates.patch bsc#1077332 boo#1090042 sckang@suse.com -- Don't launch gnome-software when clicking the updates notification. Launch gpk-update-viewer instead.
Patch0: gnome-software-launch-gpk-update-viewer-for-updates.patch
%endif 0%{?sle_version}
BuildRequires: gtk-doc
BuildRequires: meson