record window manager exit code
@@ -75,5 +75,6 @@ while [ -e "${RTD}"/instantosrunning ]; do
export WMEXITCODE="$?"
fi
fi
- echo "$(date): window manager was restarted or crashed" >>~/.local/share/instantos.log
+ echo "$(date): window manager was restarted or crashed" >>"$ILOGFILE"
+ echo "window manager exit code: $WMEXITCODE" >>"$ILOGFILE"
done
