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

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