nemo-with-extensions: Fix open with root with polkit 127
https://github.com/polkit-org/polkit/commit/9aa43e089d870a8ee695e625237c5b731b250678
This commit is contained in:
@@ -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" \
|
||||
|
||||
@@ -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 : "${
|
||||
|
||||
Reference in New Issue
Block a user