From ec239bd81d9c5dd3b40f674aa5a3e1d4d08130028538e76863e3eed85eedc838 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 31 Oct 2022 08:00:33 +0000 Subject: [PATCH] Accepting request 1031902 from home:milachew:branches:GNOME:Factory Add gnome-shell-disable-offline-update-dialog.patch : Disable offline update suggestion before shutdown/reboot in SLE and openSUSE Leap (bsc#944832). OBS-URL: https://build.opensuse.org/request/show/1031902 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=515 --- ...-shell-disable-offline-update-dialog.patch | 25 +++++++++++++++++++ gnome-shell.changes | 7 ++++++ gnome-shell.spec | 3 +++ 3 files changed, 35 insertions(+) create mode 100644 gnome-shell-disable-offline-update-dialog.patch diff --git a/gnome-shell-disable-offline-update-dialog.patch b/gnome-shell-disable-offline-update-dialog.patch new file mode 100644 index 0000000..9fcd9f1 --- /dev/null +++ b/gnome-shell-disable-offline-update-dialog.patch @@ -0,0 +1,25 @@ +--- gnome-shell-41.orig/js/ui/endSessionDialog.js 2022-08-11 16:16:07.000000000 +0300 ++++ gnome-shell-41/js/ui/endSessionDialog.js 2022-10-26 12:49:20.435238071 +0300 +@@ -707,19 +703,7 @@ + } + + async _getUpdateInfo() { +- const connection = this._pkOfflineProxy.get_connection(); +- const reply = await connection.call( +- this._pkOfflineProxy.g_name, +- this._pkOfflineProxy.g_object_path, +- 'org.freedesktop.DBus.Properties', +- 'GetAll', +- new GLib.Variant('(s)', [this._pkOfflineProxy.g_interface_name]), +- null, +- Gio.DBusCallFlags.NONE, +- -1, +- null); +- const [info] = reply.recursiveUnpack(); +- return info; ++ return []; + } + + async OpenAsync(parameters, invocation) { + + \ No newline at end of file diff --git a/gnome-shell.changes b/gnome-shell.changes index 8ddec7a..84172c0 100644 --- a/gnome-shell.changes +++ b/gnome-shell.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Oct 28 08:03:22 UTC 2022 - Milachew + +- Add gnome-shell-disable-offline-update-dialog.patch : + Disable offline update suggestion before shutdown/reboot + in SLE and openSUSE Leap (bsc#944832). + ------------------------------------------------------------------- Sun Sep 18 07:39:53 UTC 2022 - Bjørn Lie diff --git a/gnome-shell.spec b/gnome-shell.spec index 4ba0cde..812ec22 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -61,6 +61,8 @@ Patch1008: gnome-shell-disable-ibus-when-not-installed.patch Patch1009: gnome-shell-fate324570-Make-GDM-background-image-configurable.patch # PATCH-FIX-UPSTREAM gnome-shell-jsc#SLE-16051-Input-method-recommendation.patch jsc#SLE-16051 glgo#GNOME/gnome-shell!1563 qzhao@suse.com -- launch recommended input engines when Gnome-shell init in CJK regions. Patch1010: gnome-shell-jsc#SLE-16051-Input-method-recommendation.patch +# PATCH-FIX-SLE gnome-shell-disable-offline-update-dialog.patch bsc#944832 milachew@mail.lv -- Disable offline update suggestion before shutdown/reboot in SLE and openSUSE Leap. +Patch1011: gnome-shell-disable-offline-update-dialog.patch # needed for directory ownership BuildRequires: asciidoc @@ -193,6 +195,7 @@ This package contains an optional extensions app for managing GNOME Shell extens %patch1009 -p1 %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300 %patch1010 -p1 +%patch1011 -p1 %endif %endif