mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
made if logic more reliable, now only if in x and if konvi is running use the konvi test
This commit is contained in:
parent
b109fac130
commit
793829b982
6
inxi
6
inxi
|
@ -1998,12 +1998,12 @@ get_start_client()
|
||||||
B_CONSOLE_IRC='true'
|
B_CONSOLE_IRC='true'
|
||||||
if [[ -z $IRC_CLIENT_VERSION ]];then
|
if [[ -z $IRC_CLIENT_VERSION ]];then
|
||||||
# this is a hack to try to show konversation if it is running
|
# 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
|
if [[ -n $( ps aux | grep -i 'konversation' ) && $B_RUNNING_IN_X == 'true' ]];then
|
||||||
IRC_CLIENT="Unknown Perl client"
|
|
||||||
else
|
|
||||||
IRC_CLIENT='Konversation'
|
IRC_CLIENT='Konversation'
|
||||||
IRC_CLIENT_VERSION=" $( konversation --version 2>/dev/null | gawk '/^Konversation/ {print $2}' )"
|
IRC_CLIENT_VERSION=" $( konversation --version 2>/dev/null | gawk '/^Konversation/ {print $2}' )"
|
||||||
B_CONSOLE_IRC='false'
|
B_CONSOLE_IRC='false'
|
||||||
|
else
|
||||||
|
IRC_CLIENT="Unknown Perl client"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue