mate-power-manager: Fix backlight-helper polkit popup

Same as 4d9714d7c9.
This commit is contained in:
Bobby Rong
2026-07-11 20:16:03 +08:00
parent 168bc6f699
commit b27618bc1e
+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;