1. 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.
    • 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".
  2. 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.
  3. 06 Aug, 2018 1 commit
  4. 19 Jul, 2018 1 commit
  5. 10 Jul, 2018 3 commits
  6. 13 Jun, 2018 2 commits
  7. 10 May, 2018 8 commits
  8. 09 May, 2018 2 commits
  9. 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.
  10. 24 Apr, 2018 2 commits
  11. 20 Apr, 2018 2 commits
  12. 04 Apr, 2018 2 commits
  13. 14 Feb, 2018 1 commit
    • Ray Strode's avatar
      lib: don't try to update login frequency manually · a045e06a
      Ray Strode authored
      The library will try to update the login frequency to 1 if the
      requested user isn't finished asynchronously loading yet, but we
      know they have an open session.
      That no longer works, since we no longer track login-frequency
      separately from the dbus proxy object.
      This commit drops the code, since it's unnecessary anyway.
      To be "on the safe side" we change the value returned for unloaded
      users from 0 to 1.  This is okay because the value is undefined
      before the user is loaded anyway.
  14. 07 Feb, 2018 1 commit
  15. 30 Jan, 2018 1 commit
  16. 24 Jan, 2018 1 commit
  17. 10 Jan, 2018 1 commit
  18. 21 Dec, 2017 3 commits
  19. 20 Dec, 2017 1 commit
  20. 19 Dec, 2017 4 commits