Subject: XSession-x2go: Hostname not set correctly

From: Benjamin Shadwick <[email-masked]>
Date: Sat, 13 Aug 2016 14:36:37 -0700

I see the problem:

cur_hostname="$(hostname)"
if [ -z "${cur_name}" ] || [ "${cur_hostname}" = "(none)" ] || [
"${cur_hostname}" = "localhost" ]; then
        errormsg "Hostname not set correctly; aborting."
fi

You're setting up a variable "cur_hostname" but then checking whether
"cur_name" is empty instead of cur_hostname. Of course it's empty, it
wasn't set!