#!/usr/bin/env bash #export DBUS_SESSION_BUS_ADDRESS="${DBUS_SESSION_BUS_ADDRESS:-unix:path=/run/user/${UID}/bus}" #export DISPLAY=:0 n=$(checkupdates | wc -l) if [ "$n" != "0" ]; then notify-send "System update" "$n updates available." fi notify-send "hallo"