3
0
Fork 0
forked from mirrors/nixpkgs

pipewire: Never set an empty LD_LIBRARY_PATH

An empty LD_LIBRARY_PATH may confuse some applications into appending
:, creating an empty segment that insecurely refers to the current
directory, not the absence of directories.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2022-05-24 22:01:49 -07:00 committed by Bjørn Forsman
parent 2db97cb047
commit b362ef4eff

View file

@ -239,7 +239,7 @@ in {
};
environment.sessionVariables.LD_LIBRARY_PATH =
lib.optional cfg.jack.enable "${cfg.package.jack}/lib";
lib.mkIf cfg.jack.enable [ "${cfg.package.jack}/lib" ];
users = lib.mkIf cfg.systemWide {
users.pipewire = {