# Set up the home directory if not already set in the system environment.
if [ -z "${HOME}" ]; then
USER=`id -un`
- HOME=`grep "^${USER}:" /etc/passwd | cut -d: -f6`
+ HOME=`getent passwd "${USER}" | cut -d: -f6`
if [ -z "${HOME}" -o ! -d "${HOME}" ]; then
HOME="/home/${USER}"
test -d "${HOME}" || HOME=/tmp
export LANG=C.UTF-8
# Set up Hostname/IP address where LyX can find an X-server.
-export DISPLAY=localhost:0.0
+export DISPLAY=:0.0
# ========================================================
# Below this line you should not change anything if you're