mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #297759 from bobby285271/upd/nemo-as-root
cinnamon.nemo: Fix open as root
This commit is contained in:
commit
476a33c53d
@ -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+=(
|
||||
|
Loading…
Reference in New Issue
Block a user