1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
***************
*** 222,229 ****
# Ensure the process still exists, and we aren't hallucinating.
[ -d "/proc/$xpid/" ] || continue
- xauth="`get_env_var_of_process XAUTHORITY $xpid`"
- xhome="`get_env_var_of_process HOME $xpid`"
xuser=`/bin/ls -ld /proc/$xpid/ | awk '{print $3}'`
[ -z $xauth ] && [ -n $xhome ] && [ -f $xhome/.Xauthority ] && xauth=$xhome/.Xauthority
--- 222,229 ----
# Ensure the process still exists, and we aren't hallucinating.
[ -d "/proc/$xpid/" ] || continue
+ xauth="`get_env_var_of_process $xpid XAUTHORITY`"
+ xhome="`get_env_var_of_process $xpid HOME`"
xuser=`/bin/ls -ld /proc/$xpid/ | awk '{print $3}'`
[ -z $xauth ] && [ -n $xhome ] && [ -f $xhome/.Xauthority ] && xauth=$xhome/.Xauthority
|