mirror of
https://github.com/smxi/inxi.git
synced 2025-09-01 18:19:10 +00:00
attempt at konversation bug fix
This commit is contained in:
parent
b99cfc9df2
commit
41b9d5f2aa
1 changed files with 9 additions and 4 deletions
9
inxi
9
inxi
|
@ -438,7 +438,7 @@ get_parameters()
|
|||
# Determine where infobash was run from
|
||||
get_start_app()
|
||||
{
|
||||
local ircClientPath='' ircClientPathLower=''
|
||||
local ircClientPath='' ircClientPathLower='' pidOfKonvi=''
|
||||
|
||||
if tty >/dev/null
|
||||
then
|
||||
|
@ -448,8 +448,13 @@ get_start_app()
|
|||
elif [[ -n $PPID && -f /proc/$PPID/exe ]]
|
||||
then
|
||||
ircClientPath=$( readlink /proc/$PPID/exe )
|
||||
# this handles the problem with konversation reporting itself as perl, which was missed because
|
||||
# when konversation starts infobash from inside itself, as a script, the parent is konversation, not perl
|
||||
if [ -z "$( grep -i 'konversation' <<< $ircClientPath )" -a -n "$( grep -i 'perl' <<< $ircClientPath )" -a -n "$( pidof konversation )" ]
|
||||
then
|
||||
ircClientPath=$( which konversation )
|
||||
fi
|
||||
ircClientPathLower=$( tr '[:upper:]' '[:lower:]' <<< $ircClientPath )
|
||||
|
||||
case $ircClientPathLower in
|
||||
*irssi-text*|*irssi*)
|
||||
IRC_CLIENT_VERSION=" $( $ircClientPath -v | gawk 'NR == 1 { print $2 }' )"
|
||||
|
|
Loading…
Add table
Reference in a new issue