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

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