diff --git a/inxi b/inxi index 0e084ec..74215ff 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.4.9 +#### version: 0.4.10 #### Date: November 8 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -597,13 +597,8 @@ get_start_client() elif [[ -n $PPID && -f /proc/$PPID/exe ]];then irc_client_path=$( readlink /proc/$PPID/exe ) irc_client_path_lower=$( tr '[:upper:]' '[:lower:]' <<< $irc_client_path ) - # this handles the problem with konversation reporting itself as perl, which was missed because - # when konversation starts inxi from inside itself, as a script, the parent is konversation, not perl - if [[ -z $( grep -i 'konversation' <<< $irc_client_path ) && -n $( grep -i 'perl' <<< $irc_client_path ) && -n $( pidof konversation ) ]];then - irc_client_path=$( which konversation ) - non_native_konvi='true' # from sidux infobash, handle bad detection of shell; Horst Tritremmel - elif [[ ${irc_client_path_lower##*/} =~ dash|bash|sh ]]; then + if [[ ${irc_client_path_lower##*/} =~ dash|bash|sh ]]; then # We want to know who wrapped it into the shell. PPPID="$( ps -p $PPID -o ppid --no-headers | sed 's/ //g' )" if [[ -n $PPPID && -f /proc/$PPPID/exe ]];then @@ -611,6 +606,13 @@ get_start_client() fi fi + # this handles the problem with konversation reporting itself as perl, which was missed because + # when konversation starts inxi from inside itself, as a script, the parent is konversation, not perl + if [[ -z $( grep -i 'konversation' <<< $irc_client_path ) && -n $( grep -i 'perl' <<< $irc_client_path ) && -n $( pidof konversation ) ]];then + irc_client_path=$( which konversation ) + non_native_konvi='true' + fi + case $irc_client_path_lower in *irssi-text*|*irssi*) IRC_CLIENT_VERSION=" $( $irc_client_path -v | gawk 'NR == 1 { print $2 }' )"