Merge pull request #119800 from romildo/fix.lxqt.brightness

lxqt.liblxqt: use absolute path with pkexec
This commit is contained in:
José Romildo Malaquias 2021-04-18 12:54:26 -03:00 committed by GitHub
commit f71101e0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,10 @@ mkDerivation rec {
patches = [ ./fix-application-path.patch ];
postPatch = ''
# https://github.com/NixOS/nixpkgs/issues/119766
substituteInPlace lxqtbacklight/linux_backend/driver/libbacklight_backend.c \
--replace "pkexec lxqt-backlight_backend" "pkexec $out/bin/lxqt-backlight_backend"
sed -i "s|\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}|''${out}/share/polkit-1/actions|" CMakeLists.txt
'';