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

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