From f0fe89357ea79c8a9fb35876a26f70ce7455cfee Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 31 Mar 2020 12:01:47 -0700 Subject: [PATCH] rofi: add plugins' share directories to XDG_DATA_DIRS --- pkgs/applications/misc/rofi/wrapper.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/misc/rofi/wrapper.nix b/pkgs/applications/misc/rofi/wrapper.nix index e43614d9d226..4e69f9cce145 100644 --- a/pkgs/applications/misc/rofi/wrapper.nix +++ b/pkgs/applications/misc/rofi/wrapper.nix @@ -18,6 +18,7 @@ symlinkJoin { rm $out/bin/rofi makeWrapper ${rofi-unwrapped}/bin/rofi $out/bin/rofi \ --prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share \ + ${lib.optionalString (plugins != []) ''--prefix XDG_DATA_DIRS : ${lib.concatStringsSep ":" (lib.forEach plugins (p: "${p.out}/share"))}''} \ ${lib.optionalString (theme != null) ''--add-flags "-theme ${theme}"''} \ ${lib.optionalString (plugins != []) ''--add-flags "-plugin-path $out/lib/rofi"''}