Add comment about xinitrc logic. Do double fork.

Thanks eidolon for the hint.
This commit is contained in:
Christoph Lohmann
2023-08-24 11:13:09 +02:00
parent 81cdc8f4a2
commit 384bee02ea

View File

@@ -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