diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-03-23 12:28:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-23 12:28:58 +0800 |
commit | 476a33c53da66a2a77a89bb9bcf54d5e3c232c3d (patch) | |
tree | fb6b115cfe6ac82a3e9fa8d8af0fc95ede9beda9 | |
parent | 0123d9c1b0cd6676992189b8f129f5cecce4c256 (diff) | |
parent | 8eefcdc9e9b927084eed9095ed06f9e03d1dbf5f (diff) |
Merge pull request #297759 from bobby285271/upd/nemo-as-root
cinnamon.nemo: Fix open as root
-rw-r--r-- | pkgs/desktops/cinnamon/nemo/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/nemo/default.nix b/pkgs/desktops/cinnamon/nemo/default.nix index 7b124c7987da..fe61e9701d9c 100644 --- a/pkgs/desktops/cinnamon/nemo/default.nix +++ b/pkgs/desktops/cinnamon/nemo/default.nix @@ -67,6 +67,13 @@ stdenv.mkDerivation rec { "--localedir=${cinnamon-translations}/share/locale" ]; + postInstall = '' + # This fixes open as root and handles nemo-with-extensions well. + # https://github.com/NixOS/nixpkgs/issues/297570 + substituteInPlace $out/share/polkit-1/actions/org.nemo.root.policy \ + --replace-fail "$out/bin/nemo" "/run/current-system/sw/bin/nemo" + ''; + preFixup = '' # Used for some non-fd.o icons (e.g. xapp-text-case-symbolic) gappsWrapperArgs+=( |