type "$1" >/dev/null 2>&1
}
error() {
- xmessage "$@" &
+ if installed xmessage; then
+ xmessage "$@" &
+ else
+ # Log message to a file which is displayed by my Zsh setup on startup.
+ echo "$@" >> "$HOME/.xinitrc.errors"
+ fi
}
# Save PID of the most recently started background process. Used to terminate
# them when logging out to prevent unused background processes. On some