From 381da5a508c30ffa1419fe70d617f569fe6b78a2 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 28 Jan 2013 22:59:37 +0000 Subject: [PATCH] branch one tests --- inxi | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/inxi b/inxi index ca57909..cec649f 100755 --- a/inxi +++ b/inxi @@ -2413,15 +2413,10 @@ get_start_client() eval $LOGFS local irc_client_path='' irc_client_path_lower='' non_native_konvi='' i='' local b_non_native_app='false' pppid='' app_working_name='' file_data='' - local b_qt4_konvi='false' ps_l='' + local b_qt4_konvi='false' ps_parent='' if [[ $B_RUNNING_IN_SHELL == 'true' ]];then IRC_CLIENT='Shell' - if [[ $B_EXTRA_DATA == 'true' ]];then - ps_l=$(ps -l | gawk '($5 == '"$PPID"') {print $NF}') - IRC_CLIENT="$IRC_CLIENT ($ps_l)" - fi - echo $PPID unset IRC_CLIENT_VERSION elif [[ -n $PPID && -f /proc/$PPID/exe ]];then if [[ $B_OVERRIDE_FILTER != 'true' ]];then @@ -2722,9 +2717,9 @@ get_start_client() else # this should handle certain cases where it's ssh or some other startup tool # that falls through all the other tests - ps_l=$(ps -p $PPID --no-headers | gawk '{print $NF}' ) - if [[ -n $ps_l ]];then - IRC_CLIENT=$ps_l + ps_parent=$(ps -p $PPID --no-headers 2>/dev/null | gawk '{print $NF}' ) + if [[ -n $ps_parent ]];then + IRC_CLIENT=$ps_parent else IRC_CLIENT="PPID=\"$PPID\" - empty?" fi