stylix: escape spaces in wallpaper path (#318)

Fixed version of a0bdd9c15b (#317)
which was reverted in f9b9bc7c8e (#329)

Closes #330

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
This commit is contained in:
NAHO 2024-04-11 16:58:36 +02:00 committed by GitHub
parent c630a7d3ee
commit 406f793045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,10 @@ let
paletteJSON = let
generatedJSON = pkgs.runCommand "palette.json" { } ''
${palette-generator}/bin/palette-generator ${cfg.polarity} ${cfg.image} $out
${palette-generator}/bin/palette-generator \
"${cfg.polarity}" \
${lib.escapeShellArg "${cfg.image}"} \
"$out"
'';
palette = importJSON generatedJSON;
scheme = base16.mkSchemeAttrs palette;