commit 384bee02eac5cc189ed382f621bb8151a4e9872b
Author:     Christoph Lohmann <[email protected]>
AuthorDate: Thu Aug 24 11:13:09 2023 +0200
Commit:     Christoph Lohmann <[email protected]>
CommitDate: Thu Aug 24 11:13:09 2023 +0200

    Add comment about xinitrc logic. Do double fork.
    
    Thanks eidolon for the hint.

diff --git a/dwmstatus-restart b/dwmstatus-restart
index eec88d0..463c147 100755
--- a/dwmstatus-restart
+++ b/dwmstatus-restart
@@ -9,8 +9,15 @@ fi
 
 if [ -e $HOME/.xinitrc ];
 then
-       cat $HOME/.xinitrc | grep dwmstatus | sh
+       # In case some .xinitrc exists, do try to run dwmstatus as people
+       # run it in their .xinitrc. This is in case some error
+       # redirection is done or logging.
+       {
+               grep dwmstatus $HOME/.xinitrc | sh
+       } &
 else
-       dwmstatus &
+       {
+               dwmstatus &
+       } &
 fi
 

Reply via email to