Skip to content

Commit

Permalink
accountsservice: Fix setting profile picture in GNOME Settings
Browse files Browse the repository at this point in the history
GNOME Settings places the picture to /tmp for AccountsService to use.
But accounts-daemon.service has PrivateTmp enabled so it cannot access it.
Let’s apply upstream patch to remove this hardening until a proper solution is implemented.
  • Loading branch information
jtojnar committed Feb 26, 2022
1 parent 7614caf commit 9adfe4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/libraries/accountsservice/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ stdenv.mkDerivation rec {
# Do not ignore third-party (e.g Pantheon) extensions not matching FHS path scheme.
# Fixes https://github.com/NixOS/nixpkgs/issues/72396
./drop-prefix-check-extensions.patch

# Work around not being able to set profile picture in GNOME Settings.
# https://github.com/NixOS/nixpkgs/issues/85357
# https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/98
# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1629
(fetchpatch {
url = "https://gitlab.freedesktop.org/accountsservice/accountsservice/-/commit/1ef3add46983af875adfed5d29954cbfb184f688.patch";
sha256 = "N4siK4SWkwYBnFa0JJUFgahi9XBkB/nS5yc+PyH3/iM=";
})
];

nativeBuildInputs = [
Expand Down

0 comments on commit 9adfe4a

Please sign in to comment.