fi
if (( $+commands[systemctl] )); then
- if (( $(systemctl show -P NFailedUnits) )); then
- systemctl --no-pager list-units -q --failed
- fi
+ systemctl --system --no-pager list-units -q --failed
+ systemctl --user --no-pager list-units -q --failed
fi
# list sessions if possible