nemo-with-extensions: Fix open with root with polkit 127

9aa43e089d
This commit is contained in:
Bobby Rong
2026-01-30 08:56:18 +08:00
parent bfc1b8a457
commit 180e8ae2a0
2 changed files with 2 additions and 8 deletions

View File

@@ -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" \

View File

@@ -87,13 +87,6 @@ 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 = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${