rofi: add plugins' share directories to XDG_DATA_DIRS

This commit is contained in:
Cole Helbling 2020-03-31 12:01:47 -07:00
parent 7fce01fd6a
commit f0fe89357e
No known key found for this signature in database
GPG Key ID: B37E0F2371016A4C

View File

@ -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"''}