[26.05] mate-power-manager: Fix backlight-helper polkit popup (#540928)

This commit is contained in:
Bobby Rong
2026-07-15 15:03:50 +00:00
committed by GitHub

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;