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

This commit is contained in:
Bobby Rong
2026-01-31 09:08:03 +00:00
committed by GitHub
2 changed files with 2 additions and 8 deletions
@@ -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" \
-7
View File
@@ -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 : "${