Unverified Commit 2f71e3aa authored by Bobby Rong's avatar Bobby Rong Committed by GitHub
Browse files

nemo-with-extensions: Fix open with root with polkit 127 (#485199)

parents 5591ce5f 180e8ae2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -46,7 +46,8 @@ symlinkJoin {

    # Point to wrapped binary in all service files
    for file in "share/dbus-1/services/nemo.FileManager1.service" \
      "share/dbus-1/services/nemo.service"
      "share/dbus-1/services/nemo.service" \
      "share/polkit-1/actions/org.nemo.root.policy"
    do
      rm "$out/$file"
      substitute "${nemo}/$file" "$out/$file" \
+0 −7
Original line number Diff line number Diff line
@@ -87,13 +87,6 @@ stdenv.mkDerivation (finalAttrs: {
    "--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 = ''
    gappsWrapperArgs+=(
       --prefix XDG_DATA_DIRS : "${