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:
commit
9b68a413da
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue