#!/bin/bash
########################################################## 
# Inxi-gui, displays information about your pc hardware  #
#                                                        #
# Gui Author Ken Dotson <lxgator@gmail.com>              #
#                                                        #
##########################################################
# inxi-man.htm
# Need a network connection
EICON='/usr/share/inxi-gui/data/icons/error.svg'
wget -q --tries=3 --timeout=10 --delete-after "https://www.google.com/" 
if [ $? -eq 0 ]; then
  exec
else
notify-send -t 8000 -i $EICON "No network Connection" 
exit 0
fi
PID=`ps -eaf | grep "inxi-gui" | grep -v grep | awk '{print $2}'`
if [[ "" !=  "$PID" ]]; then
rm -f /tmp/inxi > /dev/null 2>&1
kill -9 $PID > /dev/null 2>&1
fi &
xdg-open https://smxi.org/docs/inxi-man.htm
