mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #84689 from matthewbauer/fix-77290
kwallet-pam: just provide plugin path for qtbase
This commit is contained in:
commit
55e82502a5
@ -7,8 +7,15 @@ mkDerivation {
|
||||
postPatch = ''
|
||||
sed -i pam_kwallet_init -e "s|socat|${lib.getBin socat}/bin/socat|"
|
||||
'';
|
||||
|
||||
# We get a crash when QT_PLUGIN_PATH is more than 1000 characters.
|
||||
# pam_kwallet_init passes its environment to kwalletd5, but
|
||||
# wrapQtApps gives our environment a huge QT_PLUGIN_PATH value. We
|
||||
# are able to unset it here since kwalletd5 will have its own
|
||||
# QT_PLUGIN_PATH.
|
||||
postFixup = ''
|
||||
wrapQtApp $out/libexec/pam_kwallet_init
|
||||
wrapProgram $out/libexec/pam_kwallet_init --unset QT_PLUGIN_PATH
|
||||
'';
|
||||
|
||||
dontWrapQtApps = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user