3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #179796 from klemensn/desktop-manager-literal-newline

nixos/desktop-manager: Use literal newline to fix shell syntax
This commit is contained in:
Silvan Mosberger 2022-07-01 20:32:00 +02:00 committed by GitHub
commit 9b68a413da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,9 @@ in
apply = map (d: d // {
manage = "desktop";
start = d.start
+ optionalString (needBGCond d) ''\n\n
# literal newline to ensure d.start's last line is not appended to
+ optionalString (needBGCond d) ''
if [ -e $HOME/.background-image ]; then
${pkgs.feh}/bin/feh --bg-${cfg.wallpaper.mode} ${optionalString cfg.wallpaper.combineScreens "--no-xinerama"} $HOME/.background-image
fi