From 793829b982b6fc628af839272f643cf75b5c611d Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sun, 22 May 2011 00:29:47 +0000 Subject: [PATCH] made if logic more reliable, now only if in x and if konvi is running use the konvi test --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index efa6fd0..6e0b755 100755 --- a/inxi +++ b/inxi @@ -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 ;;