made if logic more reliable, now only if in x and if konvi is running use the konvi test

This commit is contained in:
inxi-svn 2011-05-22 00:29:47 +00:00
parent b109fac130
commit 793829b982

6
inxi
View file

@ -1998,12 +1998,12 @@ get_start_client()
B_CONSOLE_IRC='true'
if [[ -z $IRC_CLIENT_VERSION ]];then
# this is a hack to try to show konversation if it is running
if [[ -z $( ps aux | grep -i 'konversation' ) || $B_RUNNING_IN_X == 'false' ]];then
IRC_CLIENT="Unknown Perl client"
else
if [[ -n $( ps aux | grep -i 'konversation' ) && $B_RUNNING_IN_X == 'true' ]];then
IRC_CLIENT='Konversation'
IRC_CLIENT_VERSION=" $( konversation --version 2>/dev/null | gawk '/^Konversation/ {print $2}' )"
B_CONSOLE_IRC='false'
else
IRC_CLIENT="Unknown Perl client"
fi
fi
;;