1. 31 Oct, 2021 1 commit
  2. 12 Oct, 2021 1 commit
  3. 11 Oct, 2021 1 commit
  4. 08 Oct, 2021 4 commits
    • Ray Strode's avatar
      main: Allow cache files to be marked immutable · 9544664a
      Ray Strode authored and Ray Strode's avatar Ray Strode committed
      At the moment, at start up we unconditionally reset permission of all
      cache files in /var/lib/AccountsService/users.  If the mode of the files
      can't be reset, accountsservice fails to start.
      But there's a situation where we should proceed anyway: If the
      mode is already correct, and the file is read-only, there is no reason
      to refuse to proceed.
      This commit changes the code to explicitly validate the permissions of
      the file before failing.
    • Ray Strode's avatar
      daemon: Allow SystemAccount=false to be set in cache file · 985aed05
      Ray Strode authored and Ray Strode's avatar Ray Strode committed
      At the moment we do dodgy checks based on uid to decide whether or not
      an account is a system account.
      For legacy reasons, sometimes normal users have really low UIDs.
      This commit reshuffles things, so the cache file "wins" for deciding
      whether or not a user is a system user.
    • Dušan Kazik's avatar
      po: update slovak translation · 1ca1e90c
      Dušan Kazik authored and Ray Strode's avatar Ray Strode committed
    • Ray Strode's avatar
      user: Introduce user templates for setting default session etc · e6dc3b9c
      Ray Strode authored and Ray Strode's avatar Ray Strode committed
      At the moment there's no easy way to set a default session, or
      face icon or whatever for all users.  If a user has never logged in
      before, we just generate their cache file from hardcoded defaults.
      This commit introduces a template system to make it possible for
      admins to set up defaults on their own.
      Admins can write either
      files.  These files follow the same format as
      files, but will support substituting $HOME and $USER to the appropriate
      user specific values.
      User templates also support an additional group [Template] that
      have an additional key EnvironmentFiles that specify a list
      of environment files to load (files with KEY=VALUE pairs in them).
      Any keys listed in those environment files will also get substituted.
  5. 30 Sep, 2021 1 commit
  6. 26 Jul, 2021 1 commit
  7. 14 Jul, 2021 1 commit
  8. 27 Jun, 2021 1 commit
  9. 26 Jun, 2021 1 commit
  10. 22 Jun, 2021 1 commit
  11. 17 Jun, 2021 1 commit
    • mouse's avatar
      daemon: Remove duplicate "changed" signal emission · ceb0300c
      mouse authored
      The daemon code manually calls `g_signal_emit_by_name (user, "changed", 0)` every time it changes that users `automatic-login` property.
      This emission is redundant because the user code sets up a `notify` handler to emit `changed` it self any time any of its properties are changed.
  12. 13 May, 2021 1 commit
    • qi long's avatar
      util: Get uid when needed · bf883b03
      qi long authored
      The variable uid is used only when the loginuid cannot be obtained
      or is empty. Change it to get the variable uid when needed
  13. 24 Mar, 2021 1 commit
  14. 16 Mar, 2021 7 commits
  15. 04 Sep, 2020 1 commit
  16. 14 Aug, 2020 1 commit
  17. 04 May, 2020 1 commit
  18. 01 May, 2020 2 commits
  19. 27 Apr, 2020 2 commits
  20. 12 Mar, 2020 2 commits
  21. 04 Mar, 2020 1 commit
  22. 28 Feb, 2020 2 commits
  23. 27 Feb, 2020 2 commits
    • Michael Catanzaro's avatar
      user: fix double-unref of GDBusMethodInvocation throughout · 771eb671
      Michael Catanzaro authored
      When we return FALSE, we're not saying "failure," we're actually
      saying "unhandled." So in accounts-user-generated.c (generated by
      gdbus-codegen), _accounts_user_skeleton_handle_method_call() will
      call g_dbus_method_invocation_return_error(), which assumes
      ownership, sends a D-Bus error to the peer, and unrefs the
      GDBusMethodInvocation. Problem is, we've already done all of that
      and doing so twice is unexpected and bad.
      Spotted by Ray Strode in !51.
      Fixes #86
    • Michael Catanzaro's avatar
      user: fix indentation error · f8d77183
      Michael Catanzaro authored
  24. 24 Feb, 2020 3 commits
    • Philip Withnall's avatar
      act-user: Use G_DECLARE_FINAL_TYPE to declare ActUser · 8ba5a67f
      Philip Withnall authored and Ray Strode's avatar Ray Strode committed
      This tidies up the code a bit, and (critically) exposes a concrete
      structure for `ActUser` and `ActUserClass`. Previously these were
      dangling typedefs, which meant the compiler had no idea they derived
      from `GObject`, and hence would give warnings about strict aliasing when
      (for example) calling:
      g_set_object (&my_user, user);
      where `my_user` and `user` were both `ActUser*`.
      This shouldn’t introduce any API or ABI changes, as the library
      basically exposed no API in this area before. The autoptr cleanup
      function is now defined by `G_DECLARE_FINAL_TYPE`.
      libaccountsservice already depends on GLib 2.63, so no dependency bump
      is needed.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
    • Anders Jonsson's avatar
      Update Swedish translation · 8d348ba2
      Anders Jonsson authored and Ray Strode's avatar Ray Strode committed
    • Robert Ancell's avatar
      act-user-manager: Remove ConsoleKit support · d75ae314
      Robert Ancell authored and Ray Strode's avatar Ray Strode committed
      ConsoleKit is very much dead and replaced by logind or elogind.