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

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