mate-power-manager: Fix backlight-helper polkit popup (#540734)
This commit is contained in:
@@ -141,6 +141,10 @@ in
|
||||
services.libinput.enable = mkDefault true;
|
||||
|
||||
security.pam.services.mate-screensaver.unixAuth = true;
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
enablePkexecWrapper = mkDefault true;
|
||||
};
|
||||
|
||||
xdg.portal.configPackages = mkDefault [ pkgs.mate-desktop ];
|
||||
|
||||
|
||||
@@ -56,7 +56,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mate-panel
|
||||
];
|
||||
|
||||
configureFlags = [ "--enable-applets" ];
|
||||
configureFlags = [
|
||||
"--enable-applets"
|
||||
"--sbindir=$(out)/bin"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Fixes polkit popup after `nixos-rebuild switch`.
|
||||
substituteInPlace src/gpm-brightness.c \
|
||||
--replace-fail 'SBINDIR "/mate-power-backlight-helper' '"/run/current-system/sw/bin/mate-power-backlight-helper'
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user