desktop manager script: start properly

Adds a missing line feed when X is enabled to the start script name
and the appended if check. Resolves #160735
main
Shaw Vrana 2 years ago
parent 716ab57e39
commit 0bc0dc8090
  1. 2
      nixos/modules/services/x11/desktop-managers/default.nix

@ -72,7 +72,7 @@ in
apply = map (d: d // {
manage = "desktop";
start = d.start
+ optionalString (needBGCond d) ''
+ optionalString (needBGCond d) ''\n\n
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…
Cancel
Save