Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gnome-session for openSUSE:Factory 
checked in at 2021-05-06 22:51:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-session (Old)
 and      /work/SRC/openSUSE:Factory/.gnome-session.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnome-session"

Thu May  6 22:51:45 2021 rev:195 rq:890133 version:40.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnome-session/gnome-session.changes      
2021-04-24 23:07:20.903241680 +0200
+++ /work/SRC/openSUSE:Factory/.gnome-session.new.2988/gnome-session.changes    
2021-05-06 22:51:51.234940869 +0200
@@ -1,0 +2,13 @@
+Fri Apr 30 12:35:06 UTC 2021 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Update to version 40.1.1:
+  + presence: Fix error detection when syncing initial screensaver
+    state.
+- Changes from version 40.1:
+  + presence: Do not auto-start the GNOME Shell screensaver
+    service.
+  + util: Unset LC_* variables as they may be unset at login time.
+- Drop gnome-session-avoid-blocking-when-connecting-dbus.patch:
+  fixed upstream with slight modifications.
+
+-------------------------------------------------------------------

Old:
----
  gnome-session-40.0.tar.xz
  gnome-session-avoid-blocking-when-connecting-dbus.patch

New:
----
  gnome-session-40.1.1.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnome-session.spec ++++++
--- /var/tmp/diff_new_pack.NH1YVi/_old  2021-05-06 22:51:52.086937355 +0200
+++ /var/tmp/diff_new_pack.NH1YVi/_new  2021-05-06 22:51:52.086937355 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           gnome-session
-Version:        40.0
+Version:        40.1.1
 Release:        0
 Summary:        Session Tools for the GNOME Desktop
 License:        GPL-2.0-or-later
@@ -26,11 +26,8 @@
 Source0:        
https://download.gnome.org/sources/gnome-session/40/%{name}-%{version}.tar.xz
 Source1:        gnome
 Source2:        gnome.desktop
-
 # PATCH-FIX-UPSTREAM gnome-session-better-handle-empty-xdg_session_type.patch 
bsc#1084756 bgo#794256 yfji...@suse.com -- solution provided by m...@suse.com 
using a more reasonable way to handle gpu acceleration check
 Patch0:         gnome-session-better-handle-empty-xdg_session_type.patch
-# PATCH-FIX-UPSTREAM gnome-session-avoid-blocking-when-connecting-dbus.patch 
bsc#1184698 glgo#GNOME/gnome-session#88 xw...@suse.com -- Avoid blocking when 
connecting to ScreenSaver dbus
-Patch1:         gnome-session-avoid-blocking-when-connecting-dbus.patch
 
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  fdupes

++++++ gnome-session-40.0.tar.xz -> gnome-session-40.1.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-session-40.0/NEWS new/gnome-session-40.1.1/NEWS
--- old/gnome-session-40.0/NEWS 2021-04-12 16:55:19.905446000 +0200
+++ new/gnome-session-40.1.1/NEWS       2021-04-28 10:32:22.872144200 +0200
@@ -1,3 +1,16 @@
+==============
+Version 40.1.1
+==============
+
+       presence: Fix error detection when syncing initial screensaver state
+
+============
+Version 40.1
+============
+
+       presence: Do not auto-start the GNOME Shell screensaver service
+       util: Unset LC_* variables as they may be unset at login time
+
 ============
 Version 40.0
 ============
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-session-40.0/gnome-session/gsm-presence.c 
new/gnome-session-40.1.1/gnome-session/gsm-presence.c
--- old/gnome-session-40.0/gnome-session/gsm-presence.c 2021-04-12 
16:55:19.909446000 +0200
+++ new/gnome-session-40.1.1/gnome-session/gsm-presence.c       2021-04-28 
10:32:22.877144300 +0200
@@ -230,6 +230,34 @@
 }
 
 static void
+screensaver_get_active_cb (GDBusProxy  *screensaver_proxy,
+                           GAsyncResult *res,
+                           GsmPresence *presence)
+{
+        g_autoptr(GVariant) data = NULL;
+        g_autoptr(GError) error = NULL;
+        gboolean is_active;
+
+        data = g_dbus_proxy_call_finish (screensaver_proxy, res, &error);
+        if (!data) {
+                if (error) {
+                        g_warning ("Could not retrieve current screensaver 
active state: %s",
+                                   error->message);
+                } else {
+                        g_warning ("Could not retrieve current screensaver 
active state!");
+                }
+
+                return;
+        }
+
+        g_variant_get (data, "(b)", &is_active);
+        if (presence->priv->screensaver_active != is_active) {
+                presence->priv->screensaver_active = is_active;
+                set_session_idle (presence, is_active);
+        }
+}
+
+static void
 on_screensaver_name_owner_changed (GDBusProxy  *screensaver_proxy,
                                    GParamSpec  *pspec,
                                    GsmPresence *presence)
@@ -240,9 +268,19 @@
         if (name_owner == NULL) {
                 g_debug ("Detected that screensaver has left the bus");
 
-                presence->priv->screensaver_proxy = NULL;
                 presence->priv->screensaver_active = FALSE;
                 set_session_idle (presence, FALSE);
+        } else {
+                g_debug ("Detected that screensaver has aquired the bus");
+
+                g_dbus_proxy_call (presence->priv->screensaver_proxy,
+                                   "GetActive",
+                                   NULL,
+                                   G_DBUS_CALL_FLAGS_NO_AUTO_START,
+                                   1000,
+                                   NULL,
+                                   (GAsyncReadyCallback) 
screensaver_get_active_cb,
+                                   presence);
         }
 
         g_free (name_owner);
@@ -327,8 +365,12 @@
                 g_warning ("Unable to register presence with session bus");
         }
 
+        /* This only connects to signals and resolves the current name owner
+         * synchronously. It is important to not auto-start the service!
+         */
         presence->priv->screensaver_proxy = g_dbus_proxy_new_sync 
(presence->priv->connection,
-                                                                   
G_DBUS_PROXY_FLAGS_NONE,
+                                                                   
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START |
+                                                                   
G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
                                                                    NULL,
                                                                    GS_NAME,
                                                                    GS_PATH,
@@ -442,6 +484,7 @@
 
         g_clear_pointer (&presence->priv->status_text, g_free);
         g_clear_object (&presence->priv->idle_monitor);
+        g_clear_object (&presence->priv->screensaver_proxy);
 
         G_OBJECT_CLASS (gsm_presence_parent_class)->finalize (object);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-session-40.0/gnome-session/gsm-util.c 
new/gnome-session-40.1.1/gnome-session/gsm-util.c
--- old/gnome-session-40.0/gnome-session/gsm-util.c     2021-04-12 
16:55:19.910446200 +0200
+++ new/gnome-session-40.1.1/gnome-session/gsm-util.c   2021-04-28 
10:32:22.878144300 +0200
@@ -65,6 +65,22 @@
     "WAYLAND_SOCKET",
     "GNOME_SHELL_SESSION_MODE",
     "GNOME_SETUP_DISPLAY",
+
+    /* None of the LC_* variables should survive a logout/login */
+    "LC_CTYPE",
+    "LC_NUMERIC",
+    "LC_TIME",
+    "LC_COLLATE",
+    "LC_MONETARY",
+    "LC_MESSAGES",
+    "LC_PAPER",
+    "LC_NAME",
+    "LC_ADDRESS",
+    "LC_TELEPHONE",
+    "LC_MEASUREMENT",
+    "LC_IDENTIFICATION",
+    "LC_ALL",
+
     NULL
 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gnome-session-40.0/meson.build 
new/gnome-session-40.1.1/meson.build
--- old/gnome-session-40.0/meson.build  2021-04-12 16:55:19.911446000 +0200
+++ new/gnome-session-40.1.1/meson.build        2021-04-28 10:32:22.879144200 
+0200
@@ -1,6 +1,6 @@
 project(
   'gnome-session', 'c',
-  version: '40.0',
+  version: '40.1.1',
   license: 'GPL2+',
   default_options: 'buildtype=debugoptimized',
   meson_version: '>= 0.53.0'

Reply via email to