trying another python fix

This commit is contained in:
inxi-svn 2011-07-25 22:29:09 +00:00
parent b96d7ff5a2
commit 2a33a1380e

17
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.7.21-test
#### Date: July 25 2011
#### Patch Number: 02
#### Patch Number: 03
########################################################################
#### SPECIAL THANKS
########################################################################
@ -2511,7 +2511,20 @@ get_start_client()
IRC_CLIENT_VERSION=" $( konversation --version 2>/dev/null | gawk '/^Konversation/ {print $2}' )"
B_CONSOLE_IRC='false'
else
IRC_CLIENT="Unknown Perl client"
IRC_CLIENT="Unknown $app_working_name client"
fi
fi
;;
python*)
# B_CONSOLE_IRC='true'
if [[ -z $IRC_CLIENT_VERSION ]];then
# this is a hack to try to show konversation if inxi is running but started via /cmd
if [[ -n $( ps aux | grep -i 'konversation' | grep -v 'grep' ) && $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 $app_working_name client"
fi
fi
;;