1. 26 Sep, 2018 6 commits
  2. 11 Sep, 2018 3 commits
  3. 06 Sep, 2018 8 commits
  4. 20 Aug, 2018 2 commits
    • Ray Strode's avatar
      user: export new Saved property · 14bb1237
      Ray Strode authored
      accountsservice maintains a state file for some users, if those users
      have selected a specific session or language.
      
      There's no good way, at the moment, for an application to check if a
      specific user has saved state.
      
      This commit exports the Saved property on the User object.
      14bb1237
    • Ray Strode's avatar
      user: add new Session/SessionType properties to replace XSession · c66cee94
      Ray Strode authored
      Having a property called XSession in the API makes little
      sense when wayland has taken the world by storm.
      
      This commit adds new "Session" property without the "X" in the name,
      and an additional property "SessionType" that can be either
      "wayland" or "x11".
      c66cee94
  5. 10 Aug, 2018 1 commit
    • Ray Strode's avatar
      lib: don't fail loading if logind isn't working right · 74fed8d9
      Ray Strode authored
      At the moment if logind can fail in two ways when
      asking the session associated with the current pid:
      
      1) ENOENT, the process isn't part of a registered session
      2) ENODATA, the mechanism for checking which session a
      process is registered with isn't working.
      
      If we hit the second case then wefail loading the user manager
      entirely.  This leads to the dbus proxy associated with a user
      from loading and the user getting stuck with defaults like a
      NULL xsession and systemaccount=TRUE
      
      This commit changes the behavior for the second case to be
      like the first. Namely, to accept there's no associated
      session and carry on as best we can.
      74fed8d9
  6. 06 Aug, 2018 1 commit
  7. 19 Jul, 2018 1 commit
  8. 10 Jul, 2018 3 commits
  9. 13 Jun, 2018 2 commits
  10. 10 May, 2018 8 commits
  11. 09 May, 2018 2 commits
  12. 25 Apr, 2018 1 commit
    • Ray Strode's avatar
      wtmp-helper: don't call getpwnam() · 081a2b74
      Ray Strode authored
      The wtmp helper code examines /var/log/wtmp to determine which
      users log in the most frequently.
      
      That code calls getpwnam() once for every entry in /var/log/wtmp.
      This is very inefficient, since getpwnam() can be quite slow, and
      /var/log/wtmp will often have the same users repeated over and
      over again.
      
      Also, we don't actually use the result for anything other than verifying
      the existence of the user! And we already verify the existence of
      the user later later in the code in a more efficient way (by finding
      the user in the users hashtable).
      
      This commit just drops the unnecessary getpwnam() call.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=106240
      081a2b74
  13. 24 Apr, 2018 2 commits