From 0bc0dc8090e6609838816f43dc7799e32c674434 Mon Sep 17 00:00:00 2001 From: Shaw Vrana Date: Fri, 18 Feb 2022 11:27:42 -0800 Subject: [PATCH] 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 --- nixos/modules/services/x11/desktop-managers/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/desktop-managers/default.nix b/nixos/modules/services/x11/desktop-managers/default.nix index 8247a7e381c..de106a51067 100644 --- a/nixos/modules/services/x11/desktop-managers/default.nix +++ b/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