From cb46f38e2d59f8f65665bf717ecc663d990f2b65 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 28 Mar 2025 14:26:46 +0100 Subject: [PATCH] fix: stop wlr-services if running on dwl startup When wlr-services services are running already from previous session, ie. after a logout or a crash, they couldn't be started again, 1. because wlr-services has been running still, it needs to be stopped first, 2. because the services got disabled cause they crashed with no possibility to connect to wayland display 5 times. The point 1. is fixed by this commit, 2. is fixed in guix-exprs --- home/modules/ruther/home/dwl/scripts.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/modules/ruther/home/dwl/scripts.scm b/home/modules/ruther/home/dwl/scripts.scm index 8d66365..f0d2622 100644 --- a/home/modules/ruther/home/dwl/scripts.scm +++ b/home/modules/ruther/home/dwl/scripts.scm @@ -63,8 +63,12 @@ "XDG_CURRENT_DESKTOP" "DISPLAY")) - ; TODO: make a "target" instead, to start. - ; TODO: maybe shepherd should be taken out of its service? + ;; In case it has been started already, stop it + (invoke + (string-append #$shepherd "/bin/herd") + "stop" + "wlr-services") + ;; Start wlr-services now (invoke (string-append #$shepherd "/bin/herd") "start" -- 2.48.1