Blame SOURCES/0001-data-don-t-send-change-updates-for-login-history.patch

c5bdc0
From efaf411c9159364c248fc44ccc6d6403875665a2 Mon Sep 17 00:00:00 2001
c5bdc0
From: Ray Strode <rstrode@redhat.com>
c5bdc0
Date: Thu, 9 May 2019 14:58:34 -0400
c5bdc0
Subject: [PATCH] data: don't send change updates for login-history
c5bdc0
c5bdc0
The login-history property of user objects can be quite large.
c5bdc0
If wtmp is changed frequently, that can lead to memory fragmentation
c5bdc0
in clients.
c5bdc0
c5bdc0
Furthermore, most clients never check login-history, so it's
c5bdc0
wasted memory and wasted cpu.
c5bdc0
c5bdc0
This commit disables change notification for that property.  If
c5bdc0
a client really needs to get updates, they can manually refresh
c5bdc0
their cache when appropriate.
c5bdc0
---
c5bdc0
 data/org.freedesktop.Accounts.User.xml | 1 +
c5bdc0
 1 file changed, 1 insertion(+)
c5bdc0
c5bdc0
diff --git a/data/org.freedesktop.Accounts.User.xml b/data/org.freedesktop.Accounts.User.xml
c5bdc0
index 4ab989a..bf0d60b 100644
c5bdc0
--- a/data/org.freedesktop.Accounts.User.xml
c5bdc0
+++ b/data/org.freedesktop.Accounts.User.xml
c5bdc0
@@ -682,60 +682,61 @@
c5bdc0
     <doc:doc>
c5bdc0
       <doc:description>
c5bdc0
         <doc:para>
c5bdc0
           The users location.
c5bdc0
         </doc:para>
c5bdc0
       </doc:description>
c5bdc0
     </doc:doc>
c5bdc0
   </property>
c5bdc0
 
c5bdc0
   <property name="LoginFrequency" type="t" access="read">
c5bdc0
     <doc:doc>
c5bdc0
       <doc:description>
c5bdc0
         <doc:para>
c5bdc0
           How often the user has logged in.
c5bdc0
         </doc:para>
c5bdc0
       </doc:description>
c5bdc0
     </doc:doc>
c5bdc0
   </property>
c5bdc0
 
c5bdc0
   <property name="LoginTime" type="x" access="read">
c5bdc0
     <doc:doc>
c5bdc0
       <doc:description>
c5bdc0
         <doc:para>
c5bdc0
           The last login time.
c5bdc0
         </doc:para>
c5bdc0
       </doc:description>
c5bdc0
     </doc:doc>
c5bdc0
   </property>
c5bdc0
 
c5bdc0
   <property name="LoginHistory" type="a(xxa{sv})" access="read">
c5bdc0
+    <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
c5bdc0
     <doc:doc>
c5bdc0
       <doc:description>
c5bdc0
         <doc:para>
c5bdc0
           The login history for this user.
c5bdc0
           Each entry in the array represents a login session. The first two
c5bdc0
           members are the login time and logout time, as timestamps (seconds since the epoch). If the session is still running, the logout time
c5bdc0
           is 0.
c5bdc0
         </doc:para>
c5bdc0
         <doc:para>
c5bdc0
           The a{sv} member is a dictionary containing additional information
c5bdc0
           about the session. Possible members include 'type' (with values like ':0', 'tty0', 'pts/0' etc).
c5bdc0
         </doc:para>
c5bdc0
       </doc:description>
c5bdc0
     </doc:doc>
c5bdc0
   </property>
c5bdc0
 
c5bdc0
   <property name="IconFile" type="s" access="read">
c5bdc0
     <doc:doc>
c5bdc0
       <doc:description>
c5bdc0
         <doc:para>
c5bdc0
            The filename of a png file containing the users icon.
c5bdc0
         </doc:para>
c5bdc0
       </doc:description>
c5bdc0
     </doc:doc>
c5bdc0
   </property>
c5bdc0
 
c5bdc0
   <property name="Locked" type="b" access="read">
c5bdc0
     <doc:doc>
c5bdc0
       <doc:description>
c5bdc0
         <doc:para>
c5bdc0
-- 
c5bdc0
2.21.0
c5bdc0