From 814ed4b9e572f8fa7c19dbe734d2defc8affd479 Mon Sep 17 00:00:00 2001 From: B4rc1 <10383737+B4rc1@users.noreply.github.com> Date: Mon, 1 Jul 2024 09:11:46 +0000 Subject: [PATCH] herbstluftwm: fix unable to be started (#271198) Co-authored-by: Sandro --- nixos/modules/services/x11/window-managers/herbstluftwm.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/window-managers/herbstluftwm.nix b/nixos/modules/services/x11/window-managers/herbstluftwm.nix index 7edaf4e980ec..94c9f4aa91c8 100644 --- a/nixos/modules/services/x11/window-managers/herbstluftwm.nix +++ b/nixos/modules/services/x11/window-managers/herbstluftwm.nix @@ -33,7 +33,10 @@ in (cfg.configFile != null) ''-c "${cfg.configFile}"'' ; - in "${cfg.package}/bin/herbstluftwm ${configFileClause} &"; + in '' + ${cfg.package}/bin/herbstluftwm ${configFileClause} & + waitPID=$! + ''; }; environment.systemPackages = [ cfg.package ]; };