# 1. enumerate current users
# 2. find the one with "console" in second column (the user with GUI session)
# 3. only first found to be used
# 4. print first column (GUI user name)
home_user=`/usr/bin/who | /usr/bin/grep '^[^\w]*[\w]*console.*'| /usr/bin/head -1 | /usr/bin/awk '{ print $1 '}`