mate-power-manager: Fix backlight-helper polkit popup (#540734)

This commit is contained in:
Bobby Rong
2026-07-12 01:59:01 +00:00
committed by GitHub
2 changed files with 14 additions and 1 deletions
@@ -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 ];
+10 -1
View File
@@ -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;